CHAPTER 1 THE ABC OF PROGRAMMING

Slides:



Advertisements
Similar presentations
Chapter 7 JavaScript: Introduction to Scripting. Outline Simple Programs Objects and Variables Obtaining User Input with prompt Dialogs – –Dynamic Welcome.
Advertisements

Learning HTML. > Title of page This is my first homepage. Tells Browser This is an HTML page Basic Tags Tells Browser End of HTML page Header information.
HTML.
HyperText Markup Language (HTML). Introduction to HTML Hyper Text Markup Language HTML Example The structure of an HTML document Agenda.
JavaScript Part 6. Calling JavaScript functions on an event JavaScript doesn’t have a main function like other programming languages but we can imitate.
The Web Warrior Guide to Web Design Technologies
Computer Science 1611 Internet & Web Creating Webpages Hypertext and the HTML Markup Language.
Information Technology Center Hany Abdelwahab Computer Specialist.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Lesson 8 Creating Forms with JavaScript
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
Styling and theming Build campaigns in style. What we'll look at... How a web document is structured How HTML and CSS fit together Tools you will need.
Integrating JavaScript and HTML5 HTML5 & CSS 7 th Edition.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic.
JavaScript, Fourth Edition
HTML Internet Basics & Beyond. What The Heck Is HTML? HTML is the language of web pages. In order to truly understand HTML, you need to know a little.
HTML: Hyptertext Markup Language Doman’s Sections.
April 20023CSG11 Electronic Commerce HTML John Wordsworth Department of Computer Science The University of Reading Room 129, Ext.
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
The Web Wizard’s Guide To JavaScript Chapter 8 Working with Windows and Frames.
HTML Basic. What is HTML HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it.
CO1552 – Web Application Development Further JavaScript: Part 1: The Document Object Model Part 2: Functions and Events.
Headings are defined with the to tags. defines the largest heading. defines the smallest heading. Note: Browsers automatically add an empty line before.
INTRODUCTION JavaScript can make websites more interactive, interesting, and user-friendly.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
Chapter 6 Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc.Slide 1.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
Chapter 4 Frames and Cascading Style Sheets. Frames Frames divide a browser window into two or more separate pieces or panes, with each pane containing.
Source of website: “Text/css rel=“styles heet” This is an external style sheet link. This means that the.
CHAPTER 1 THE ABC OF PROGRAMMING B HOW DO COMPUTERS FIT IN WITH THE WORLD AROUND THEM?
DHTML.
Web Basics: HTML/CSS/JavaScript What are they?
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Chapter 6 JavaScript: Introduction to Scripting
JavaScript is a programming language designed for Web pages.
Introduction to XHTML.
Intro to Web Development Class A Review
Introduction to Programming the WWW I
Cascading Style Sheets
14 A Brief Look at JavaScript and jQuery.
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
The Document Object Model
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
Chapter 13 - Dynamic HTML: Object Model and Collections
HTML HYPERTEXT MARKUP LANGUAGE.
HTML 12/27/2018.
Document Object Model (DOM): Objects and Collections
Cascading Style Sheets™ (CSS)
HTML and CSS MIS 2402 Jeremy Shafer Department of MIS
Pertemuan 1b
HTML Structure.
The Web Wizard’s Guide To JavaScript
WEB & HTML Background Info.
CIS 133 mashup Javascript, jQuery and XML
Tutorial 10: Programming with javascript
Web Development 101 Workshop
CHAPTER 3 FUNCTIONS, METHODS & OBJECTS
HTML LINKS
Introduction to Programming and JavaScript
Cascading Style Sheets
Murach's JavaScript and jQuery (3rd Ed.)
Web Software Model CS 4640 Programming Languages for Web Applications
[Robert W. Sebesta, “Programming the World Wide Web
JavaScript: BOM and DOM CS Programming Languages for Web Applications
© 2017, Mike Murach & Associates, Inc.
Presentation transcript:

CHAPTER 1 THE ABC OF PROGRAMMING

B

HOW DO COMPUTERS FIT IN WITH THE WORLD AROUND THEM?

Here is a model of a hotel, along with some trees, people, and cars.

To a human, it is clear what kind of real-world object each one represents. OBJECT TYPE: HOTEL OBJECT TYPE: CAR OBJECT TYPE: CAR

Computers create models of the world using data.

The objects in these models use properties, events, and methods.

PROPERTIES

Properties tell the computer about the characteristics of an object.

OBJECT TYPE: HOTEL PROPERTIES name Quay rating 4 rooms 42 bookings 21 gym false pool true

EVENTS

Events tell the computer how the user can interact with an object.

EVENT happens when: book reservation is made cancel reservation is cancelled OBJECT TYPE: HOTEL

METHODS

Methods tell the computer how to change the properties of an object.

OBJECT TYPE: HOTEL METHOD what it does: makeBooking() increases value of bookings PROPERTY cancelBooking() decreases value of bookings property checkAvailability() subtracts value of bookings property from value of rooms property and returns number of rooms available

Here is the data the computer might use to make a model of one of the cars.

OBJECT TYPE: CAR EVENT happens when: method called: brake driver slows down changeSpeed() accelerate driver speeds up changeSpeed() METHOD what it does: changeSpeed() increases or decreases value of currentSpeed property PROPERTIES make BMW currentSpeed 45mph color silver fuel diesel

OBJECT TYPE: CAR EVENT happens when: method called: brake driver slows down changeSpeed() accelerate driver speeds up changeSpeed() METHOD what it does: changeSpeed() increases or decreases value of currentSpeed property PROPERTIES make BMW currentSpeed 45mph color silver fuel diesel

OBJECT TYPE: CAR EVENT happens when: method called: brake driver slows down changeSpeed() accelerate driver speeds up changeSpeed() METHOD what it does: changeSpeed() increases or decreases value of currentSpeed property PROPERTIES make BMW currentSpeed 45mph color silver fuel diesel

OBJECT TYPE: CAR EVENT happens when: method called: brake driver slows down changeSpeed() accelerate driver speeds up changeSpeed() METHOD what it does: changeSpeed() increases or decreases value of currentSpeed property PROPERTIES make BMW currentSpeed 45mph color silver fuel diesel

OBJECT TYPE: CAR EVENT happens when: method called: brake driver slows down changeSpeed() accelerate driver speeds up changeSpeed() METHOD what it does: changeSpeed() increases or decreases value of currentSpeed property PROPERTIES make BMW currentSpeed 30mph color silver fuel diesel

WEB BROWSERS

Web browsers use models of the browser window and the web pages contained in them.

PROPERTIES location http://www.javascriptbook.com/ OBJECT TYPE: WINDOW PROPERTIES URL http://www.javascriptbook.com/ lastModified 09/04/2014 15:33:37 title Learn JavaScript & jQuery - A book that teaches you in a nicer way OBJECT TYPE: DOCUMENT

Web browsers use these models to understand how to interpret web pages.

1

The browser receives a web page 1 The browser receives a web page

<DOCTYPE html> <html> <head> <title>Constructive & Co</title> <link rel=“stylesheet” href=“c01.css” /> </head> <body> <h1>Constructive & Co</h1> <p>For all orders and enquiries, please call <em>555-3344</em></p> </body> </html>

The browser receives a web page 2 1 The browser receives a web page

1 2 The browser receives a web page It creates a model of the page and stores it in memory

OBJECT document

document <html> <head> <body> <title> OBJECT ELEMENT document <html> <head> <body> <title> <link> <h1> <p> <em>

For all orders and inquiries please call OBJECT ELEMENT TEXT document <html> <head> <body> <title> <link> <h1> <p> Constructive & Co. Constructive & Co. For all orders and inquiries please call <em> 555-3344

For all orders and inquiries please call ATTRIBUTE TEXT ELEMENT OBJECT document <html> <head> <body> <title> <link> <h1> <p> Constructive & Co. <em> For all orders and inquiries please call 555-3344 rel stylesheet href css/c01.css

3 1 2 The browser receives a web page It creates a model of the page and stores it in memory

1 2 3 The browser receives a web page It creates a model of the page and stores it in memory It shows the page on screen using a rendering engine