jrn 436 // spring 2013

29
JRN 436 // Spring 2013

Upload: leena

Post on 02-Feb-2016

15 views

Category:

Documents


0 download

DESCRIPTION

JRN 436 // Spring 2013. The Client-Server Model Browsers Language Types The W3C and Html History Html Page Structure. Lesson 01 // Course Introduction. The Client-Server Model. Used for making spread sheets + basic word processing Information stored in HD of computer - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: JRN 436  // Spring 2013

JRN 436 // Spring 2013

Page 2: JRN 436  // Spring 2013

Lesson 01 // Course Introduction

1. The Client-Server Model2. Browsers3. Language Types4. The W3C and Html History5. Html Page Structure

Page 3: JRN 436  // Spring 2013

1. The Client-Server Model

Page 4: JRN 436  // Spring 2013

• Used for making spread sheets + basic word processing• Information stored in HD of computer• No connectivity to the outside world

Page 5: JRN 436  // Spring 2013

Then the World Wide Web was launched in 1991.

Page 6: JRN 436  // Spring 2013

• www collection of computers geographically spread-out, connected to a server (s) via the internet.• www allowed users in different locations to view information on websites via web browsers.

Page 7: JRN 436  // Spring 2013

CLIENTWhoever is asking• Laptop• Ipad• Blackberry• Iphone• Etc

SERVERWhoever is responding• Some computer or server somewhere

The Client-Server Model

Page 8: JRN 436  // Spring 2013

CLIENT sends request for info

SERVER responds to that request

Page 9: JRN 436  // Spring 2013
Page 10: JRN 436  // Spring 2013

• web 2.0 site allows users to interact and collaborate with each other in social media dialogue as creators of user-generated content.

Web-based email Social-networking sites

Blogs, wikis, video sharing sites etc

Page 11: JRN 436  // Spring 2013

2. Browsers

Page 12: JRN 436  // Spring 2013

Firefox

Opera

Chrome

Internet Explorer

Safari

Page 13: JRN 436  // Spring 2013
Page 14: JRN 436  // Spring 2013

Note We can refer to a website like StatCounter to see the popularity of these different browsers, and how each is changing over time. http://gs.statcounter.com/#browser-US-monthly-201007-201107

Page 15: JRN 436  // Spring 2013

2. Language Types

Page 16: JRN 436  // Spring 2013

Client Side Languages(Display data)

• Html• CSS• JavaScript• jQuery• ActionScript• Flex• Flash

CSL’s are directly involved with final visual/display on the screen

Server Side Languages(Produce data)

• PHP• Ruby• Java• Perl• Etc

SSL’s typically interact with a database on the server

Page 17: JRN 436  // Spring 2013

SERVER

CSL• Html• CSS• JavaScript• jQuery• ActionScript• Flex• Flash

SSL• PHP• Ruby• Java• Perl• Etc

Database• MySQL• PostgreSQL

CLIENT

StorageData AccessDisplay

Page 18: JRN 436  // Spring 2013

Client Side Languages(Display data)

• Html• CSS• JavaScript• jQuery• ActionScript• Flex• Flash

CSL’s are directly involved with final visual/display on the screen

Server Side Languages(Produce data)

• PHP• Ruby• Java• Perl• Etc

SSL’s typically interact with a database on the server

STATIC: Content (Html) & presentation (CSS) created with these markup languages don’t animate.

DYNAMIC: Provide interactivity, animation, create calculators, validate forms… in real time (without going back to the server).

Page 19: JRN 436  // Spring 2013

Let’s give an example:

We’re on an airline reservation website and we inquire about available dates and prices from Detroit to San Diego for January 2012.

CLIENT sends request for info

SERVER responds to that request

The server side languages:•do the heavy-duty functionality & computing•they provide the data of availabilities

The client side languages:•display the data given by the ssls in rows, columns, blues, reds etc.•hence csls do the easy part of the job, that’s why we refer to the client as the Thin Client.Response Displayed

Page 20: JRN 436  // Spring 2013

4. The W3C and Html History

Page 21: JRN 436  // Spring 2013

World Wide Web Consortiumhttp://www.w3.org/

Page 22: JRN 436  // Spring 2013

Html Hypertext Markup Language was announced in 1991 and updated over the years. Different versions were Html 2.0, 3.2, 4.0. Html 4.01 was the latest version that appeared in 1999.

Html5 Is the fifth revision of Html and is still under development.

Html Html 2.0 Html 3.2 Html 4.0 Html 4.01

Xml Xhtml 1.0

Html 5

Xhtml 1.1

Page 23: JRN 436  // Spring 2013

http://validator.w3.org/

Page 24: JRN 436  // Spring 2013

5. Html Page Structure

Page 25: JRN 436  // Spring 2013

<!DOCTYPE HTML><html>

<head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html;

charset=utf-8”><link href="style1.css" rel="stylesheet" type="text/css”>

</head><body></body>

</html>

Basic Requirements of a Web Page

A doctype

An <html> tag

A <head> tag

A <title> tag

A <body> tag

These make up the basic skeleton of a web page.

Below is how these requirements look like when they’re combined in a basic web page.

Page 26: JRN 436  // Spring 2013

Doctype (short for Document Type Declaration) is absolutely the first item on a web page.

<!DOCTYPE HTML>

Its job is to specify which version of Html the browser should expect to see by associating the web page with a Document Type Definition (DTD). In turn, the browser uses this information to decide how it should render items on the screen.<!DOCTYPE HTML><html>

<head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html;

charset=utf-8”><link href="style1.css" rel="stylesheet" type="text/css”>

</head><body></body>

</html>

Page 27: JRN 436  // Spring 2013

The Html Element An Html document is built using elements, where elements are like bricks holding the web page together.

<html></html>

The Html element is the outermost container of a web page. There are 2 major sections in the Html element: the head and the body.

<!DOCTYPE HTML><html>

<head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html;

charset=utf-8”><link href="style1.css" rel="stylesheet" type="text/css”>

</head><body></body>

</html>

Page 28: JRN 436  // Spring 2013

The Head Element Contains information about the page, but no information that will be displayed on the page itself.

<head><title>Untitled Document</title><meta http-equiv="Content-Type”

content=“text/html; charset=utf-8”></head>

The Title Element Will tell the browser what to display in its title bar.The Meta Element Provides additional information about the page such as the content type and character set.<!DOCTYPE HTML><html>

<head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html;

charset=utf-8”><link href="style1.css" rel="stylesheet" type="text/css”>

</head><body></body>

</html>

Page 29: JRN 436  // Spring 2013

The Body Element Contains almost everything that you see on the screen, such as headings, paragraphs, images, navigations, footers etc.

<body></body>

<!DOCTYPE HTML><html>

<head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html;

charset=utf-8”><link href="style1.css" rel="stylesheet" type="text/css”>

</head><body></body>

</html>