Web Programming 1
Web Programming 1
Lecture 1
Web Programming 1
This course is for people who…
Web Programming – Fall 2010
Web Programming 2
Marks Distribution
Web Programming – Fall 2010
Assignments: 20%
Quiz: 10%
Midterms: 20%
Project: 15%
Final: 35%
Web Programming 3
History
Web Programming – Fall 2010
Internet WWW
Internet Vs. Web
Tim Berners-Lee is credited with having created
the World Wide Web while he was a researcher
at the European High-Energy Particle Physics lab
Tim Berners-Lee wrote a proposal called
HyperText and CERN and circulated his proposal
for comments at CERN in 1989
http://www.w3.org/History/1989/proposal.html
First Web Server
Web Programming 4
History
Web Programming – Fall 2010
Web Programming 5
URI
Web Programming – Fall 2010
URI URL
Web Programming 6
URI Scheme
Web Programming – Fall 2010
http://user:[email protected]:8080/animal/bird?species=seagull#wings
http Protocol
user:pass Login:Password
www.foo.com Host
8080 Port
/animal/bird Path
Species=seagull Query
#wings Anchor
Web Programming 7
Client-Server Architecture
Web Programming – Fall 2010
Client Server
Sends requests Waits for requests
Waits for responses Processes requests
and serves responses
Active Passive
Web Programming 8
Client-Server Architecture
Web Programming – Fall 2010
Listen
Client Server
Web Programming 9
Client-Server Architecture
Web Programming – Fall 2010
Connect
Client Server
Web Programming 10
Client-Server Architecture
Web Programming – Fall 2010
Request Data
Client Server
Web Programming 11
Client-Server Architecture
Web Programming – Fall 2010
Response
Client Server
Web Programming 12
Client-Server Architecture
Web Programming – Fall 2010
Disconnect
Client Server
Web Programming 13
Client-Server Architecture
Web Programming – Fall 2010
Listen
Client Server
Web Programming 14
DTD
Web Programming – Fall 2010
15
Quirk Mode
Web Programming – Fall 2010
16
DTD
Web Programming – Fall 2010
Loose/Transitional
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Frameset
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
List of DTDs
http://www.w3.org/QA/2002/04/valid-dtd-list.html
17
HTML
Web Programming – Fall 2010
http://www.decloak.com/Dev/CSSTables/CSS_Tables_01.aspx
XHTML
Web Programming – Fall 2010
21
XHTML vs HTML Web Programming – Fall 2010
<body>
body goes here
</body>
</html>
XHTML Resources
Web Programming – Fall 2010
http://www.w3.org/People/Raggett/tidy/
<p>
<a href="http://validator.w3.org/check?uri=referer">
<img src="http://www.w3.org/Icons/valid-xhtml10“
Go to http://www.w3schools.com
Complete the HTML tutorial
Complete the XHTML tutorial
Try a WYSIWYG HTML editor like
FrontPage or DreamWeaver