23
0 Computer Science E-75 Building Dynamic Websites Harvard Extension School http://www.cs75.net/ Lecture 0: HTTP David J. Malan [email protected] http://www.cs.harvard.edu/malan/

Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

Embed Size (px)

Citation preview

Page 1: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

0

Computer Science E-75 Building Dynamic Websites Harvard Extension School http://www.cs75.net/

Lecture 0: HTTP

David J. Malan [email protected]

http://www.cs.harvard.edu/malan/

Page 2: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

1

DNS

Image from godaddy.com.

Page 3: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

2

Prerequisites

  Prior programming experience in any language and familiarity with HTML are assumed

Page 4: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

3

Expectations

  Attend all lectures   Implement four assigned projects   Implement one final project

Page 5: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

4

Lectures   Lecture 0: HTTP   Lecture 1: PHP   Lecture 2: PHP, Continued   Lecture 3: XML   Lecture 4: SQL   Lecture 5: SQL, Continued   Lecture 6: JavaScript   Lecture 7: Ajax   Lecture 8: User Interfaces   Lecture 9: Security   Lecture 10: Scalability

Page 6: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

5

Sections

  TBD!

Page 7: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

6

Books for Those Less Comfortable

Images from fehily.com, wiley.com, and amazon.com.

Page 8: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

7

Books for Those More Comfortable

Images from fehily.com, wiley.com, and amazon.com.

Page 9: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

8

www.cs75.net

Page 10: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

9

DNS

  A   CNAME   MX   NS   ...

Page 11: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

10

Web Hosts

Image from dreamhost.com.

Page 12: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

11

Virtual Private Servers

Image from linode.com.

Page 13: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

12

SSH

Page 14: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

13

SFTP

Page 15: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

14

CSS <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> <!-- body { background: #fff; } --> </style> <title>hello, world</title> </head> <body> hello, world </body> </html>

Page 16: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

15

CSS <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="styles.css" rel="stylesheet" type="text/css" /> <title>hello, world</title> </head> <body> hello, world </body> </html>

Page 17: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

16

Validity

http://validator.w3.org/

Page 18: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

17

Cross-Browser Issues

  Chrome   Firefox   Internet Explorer   Safari   …

Page 19: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

18

Yahoo! UI Library (YUI)

  YUI Reset CSS http://developer.yahoo.com/yui/reset/

  YUI Fonts CSS http://developer.yahoo.com/yui/fonts/

Page 20: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

19

YUI Reset CSS <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.1/build/

reset/reset-min.css" /> <title>hello, world</title> </head> <body> hello, world </body> </html>

Page 21: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

20

YUI Fonts CSS <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.1/build/

fonts/fonts-min.css" /> <title>hello, world</title> </head> <body> hello, world </body> </html>

Page 22: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

21

Forms   Text Fields

<input name="email" type="text" />

  Password Fields <input name="password" type="password" />

  Hidden Fields <input name="id" value="123" />

  Checkboxes <input checked="checked" name=“remember" type="checkbox" />

  Radio Buttons <input name="gender" type="radio" value="F" /> <input name="gender" type="radio" value="M" />

  Drop-Down Menus <select name=“state"> <option value=""></option> <option value=“MA"></option> <option value=“NY"></option> </select>

Page 23: Computer Science E-75cdn.cs75.net/2010/fall/lectures/0/lecture0.pdfInternet Explorer Safari … 18 Yahoo! UI Library (YUI) YUI Reset CSS ... Computer Science E-75 Building Dynamic

22

Computer Science E-75 Building Dynamic Websites Harvard Extension School http://www.cs75.net/

Lecture 0: HTTP

David J. Malan [email protected]

http://www.cs.harvard.edu/malan/