+ All Categories
Home > Documents > Murach Guide, Chapter 1, Introduction to Web Development

Murach Guide, Chapter 1, Introduction to Web Development

Date post: 26-Dec-2015
Category:
Upload: parsnup
View: 71 times
Download: 3 times
Share this document with a friend
Description:
Guide to Chapter 1 of Murach's HTML5/CSS
Popular Tags:
45
Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 1 C hapter1 Introduction to w eb developm ent
Transcript
Page 1: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 1

Chapter 1

Introduction to web development

Page 2: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 2

Objectives

Applied

1. Load a web page from the Internet or an intranet into a web browser.

2. View the source code for a web page in a web browser.

Knowledge

1. Describe the components of a web application.

2. Distinguish between the Internet and an intranet.

3. Describe HTTP requests and responses.

4. Distinguish between the way a web server processes static web pages and dynamic web pages.

5. Name the five major web browsers.

6. Describe the use of JavaScript.

Page 3: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 3

Objectives (cont.) 7. Distinguish between HTML and CSS.

8. Explain how you deploy a web site on the Internet.

9. Describe the components of an HTTP URL.

10. Distinguish between cross-browser compatibility, user accessibility, and search engine optimization.

Page 4: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 4

The components of a web application

Web Server

The Internet

`

Client

Tablet Smart Phone

Page 5: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 5

The architecture of the Internet

LAN LANLAN LAN

LAN

LAN

LANLANLANLAN

LAN

LANWAN WAN

WAN WAN

IXPIXP

IXP

` `

`

`

` `

`

`

`

` ` ` ` ` `

`

`

``

` `

`

`

```` ` `

Page 6: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 6

A static web page

Page 7: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 7

How a web server processes a static web page

Page 8: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 8

A dynamic web page at amazon.com

Page 9: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 9

How a web server processes a dynamic web page

Page 10: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 10

Web browsers Internet Explorer

Firefox

Chrome

Safari

Opera

Page 11: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 11

Server-side scripting languages ASP.NET

JSP

PHP

ColdFusion

Ruby

Perl

Python

Page 12: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 12

A web page with image swaps and rollovers

Imagerollover

Imageswap

Page 13: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 13

How JavaScript fits into this architecture

HTTP request

HTTP response(with HTML and

JavaScript)

HTMLfile

Web Server

`

Client(web browser)

JavaScriptfile

Page 14: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 14

Three of the common uses of JavaScript Data validation

Image swaps and rollovers

Slide shows

Page 15: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 15

The code for an HTML file <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript book</title> </head> <body> <h1>JavaScript and DOM Scripting</h1> <img src="javascriptbook.jpg" alt="JavaScript Book"> <p>Today, web users expect web sites to provide advanced features, dynamic user interfaces, ... </p> <p>Now, at last, your trainees can learn both JavaScript and DOM scripting in this one great book. To find out how this book does it, <a href="">read more...</a> </p><br><br><br> </body> </html>

Page 16: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 16

The HTML displayed in a web browser

Page 17: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 17

The link element for a style sheet <link rel="stylesheet" href="book.css" >

Page 18: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 18

The code for the CSS file named book.css body { font-family: Arial, Helvetica, sans-serif; font-size: 82.5%; width: 500px; margin: 0 auto; padding: 1em; border: 1px solid navy; } h1 { margin: 0; padding: .25em; font-size: 250%; color: navy; } img { float: left; margin: 0 1em; } p { margin: 0; padding-bottom: .5em; }

Page 19: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 19

The web page displayed in a web browser

Page 20: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 20

Notable releases of the HTML standards

1993 HTML 1.0 Never adopted

1995 HTML 2.0 Adopted in November 1995

1997 HTML 4.0 New features

1999 HTML 4.01

2000 XHTML 1.0 Reformulates HTML with XML

2001 XHTML 1.1 Content presentation done with CSS

2008 HTML 5 Replaces both HTML 4 and XHTML 1 Still a working draft

Page 21: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 21

Notable releases of the CSS standards

1996 1.0 Adopted in December 1996

1998 2.0 Adopted in May 1998

2004 2.1 A candidate standard in February 2004 Returned to working draft status in 2005 Became a candidate standard again in 2007

1999 3.0 A modularized version of CSS Earliest drafts in June 1999

Page 22: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 22

Two web sites to become familiar with World Wide Web Consortium (W3C):

www.w3.org.

Web Hypertext Application Technology Working Group (WHATWG): www.whatwg.org.

Page 23: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 23

Aptana Studio 3 with open HTML and CSS files

Page 24: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 24

Three free text editors Aptana Studio 3

Notepad++

TextWrangler

Page 25: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 25

Adobe Dreamweaver

Page 26: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 26

Popular IDEs for web development Adobe Dreamweaver

Microsoft Expression Web

Popular suites for web development Adobe Creative Suite

Microsoft Expression Studio

Page 27: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 27

FileZilla as it is used to upload files

Page 28: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 28

Some popular FTP programs FileZilla

FTP Voyager

CuteFTP

Fetch

Page 29: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 29

The components of an HTTP URL http://www.modulemedia.com/ourwork/index.html

protocol domain name path filename

Page 30: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 30

The web page at www.modulemedia.com

Page 31: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 31

What happens if you omit parts of a URL If you omit the protocol, the default of http:// will be used.

If you omit the filename, the default document name for the web server will be used. This is typically index.html, default.htm, or some variation.

Page 32: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 32

Two ways to access a web page on the Internet Enter the URL of a web page into the browser’s address bar.

Click on a link in the current web page to load the next web page.

Page 33: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 33

Two ways to access a web page on your own server or computer Use the FileOpen command with Internet Explorer or the

FileFile Open command with Firefox.

Use the features of your text editor or IDE.

Page 34: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 34

Naming recommendations for folders and files Create names for folders and files that consist of lowercase letters,

numbers, underscores or hyphens, and the period.

Use filenames that clearly indicate what a page contains. This is good for search engine optimization.

Page 35: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 35

The HTML source code for modulemedia page

Page 36: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 36

How to view the source code for a web page Use the ViewSource or ViewPage Source command.

Right-click on the page and select the Source, View Source, or View Page Source command.

How to view the CSS code in an external CSS file In Firefox, click on the link in the link element that refers to it.

In Internet Explorer, enter the URL for the CSS file in the address bar of your web browser.

Page 37: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 37

The current browsers (perfect score is 450)

Browser Release HTML5 Test Rating

Google Chrome 12 343

Opera 11 286

Mozilla Firefox 8 313

Apple Safari 5 293

Internet Explorer 9 141

The web site for these ratings http://www.html5test.com

Page 38: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 38

Guidelines for cross-browser compatibility Test your web pages on all of the major browsers, including the

older versions of these browsers.

Use the HTML5 and CSS3 features that are supported by all of the modern browsers.

But use the workarounds so the HTML5 and CSS3 features will work in the older browsers too.

Page 39: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 39

How to test your web pages in older browsers Use programs or web sites that offer this type of testing.

To find out what’s available, try searching for “browser testing software” or “cross browser testing”.

Page 40: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 40

The Articles tab of the WebAIM site

Page 41: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 41

Accessibility laws that you should be aware of The Americans with Disabilities Act (ADA).

Sections 504 and 508 of the federal Rehabilitation Act.

Section 255 of the Telecommunications Act of 1996.

Page 42: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 42

Types of disabilities Visual

Hearing

Motor

Cognitive

Page 43: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 43

Information sources The WebAIM web site:

http://www.webaim.org.

The World Wide Web Consortium (W3C): http://www.w3.org/TR/WCAG.

W3C also provides a specification called WAI-ARIA (Web Accessibility Initiative—Accessible Rich Internet Applications): http://www.w3.org/TR/wai-aria.

Page 44: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 44

The search results for “HTML5 documentation”

Page 45: Murach Guide, Chapter 1, Introduction to Web Development

Murach's HTML5 and CSS3, C1 © 2012, Mike Murach & Associates, Inc. Slide 45

The most popular search engines Google

Yahoo

Bing


Recommended