Monday, June 4, 2012

Udacity Web Development Tutorial Unit 1

Following THIS course.
====================
UNIT 1 NOTES

====================


http://www.udacity.com/html_playground

inline vs. block
b          div
em       p
br  
span

HTML Document Structure
<!DOCTYPE HTML>   - doctype
<html>    - opening html tag
<head>
     <title> Title! </title>      - css and js go in head section
</head>
<body>
<b> content </b>
</body>
</html>   - closing html tag

Adding Query Parameters to URLs
http://example.com/foo?P=1&q=neat
     Name is P, value is 1
     Name is q, value is neat

Fragment
References part of page you're looking at
Not sent to server when request is made
     http://www.example.com/foo#example

Port
     http://localhost:8000/
     8000 is port - default = 80

Request Line
Format = method path version
     Ex: Get /foo HTTP/1.1
     No host name because browser is already connected
Followed by headers
     Host: www.example.com
     User-Agent: chrome

Response Line
status-line    status-code    reason-phrase
status codes:
     200 ok
     302 not found
     404 not found
     500 server error
Common Headers after Response Line:
     Date, Server, Content-Type, Content-Length

Servers 
     static - prewritten files, image
     dynamic - made on the fly
     (^ web application generates content)


No comments:

Post a Comment