Except where otherwise noted, the contents of this document are Copyright 2012 Marty Stepp, Jessica Miller, and Victoria Kirst. All rights reserved. Any redistribution, reproduction, transmission, or storage of part or all of the contents in any form is prohibited without the author's expressed written permission.
ipconfig
(Windows) or ifconfig
(Mac/Linux)www.cs.washington.edu
→ 128.208.3.88
C:\Windows\system32\drivers\etc\hosts
/private/etc/hosts
/etc/hosts
http://www.aw-bc.com/info/regesstepp/index.html ~~~~ ~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ protocol host path
www.aw-bc.com
GET /info/regesstepp/index.html
GET filename
: downloadPOST filename
: send a web form responsePUT filename
: upload$ telnet www.cs.washington.edu 80 Trying 128.208.3.88... Connected to 128.208.3.88 (128.208.3.88). Escape character is '^]'. GET /index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 ..."> <html> ...
Number | Meaning |
---|---|
200 | OK |
301-303 | page has moved (permanently or temporarily) |
403 | you are forbidden to access this page |
404 | page not found |
500 | internal server error |
complete list |
<
element>
content </
element>
<p>This is a paragraph</p>
<!DOCTYPE html> <html> <head> information about the page </head> <body> page contents </body> </html>
.html
DOCTYPE
tag tells browser to interpret our page's code as HTML5, the latest/greatest version of the language<title>
describes the title of the web page
<title>Chapter 2: HTML Basics</title>
head
of the page<p>
paragraphs of text (block)
<p>You're not your job. You're not how much money you have in the bank. You're not the car you drive. You're not the contents of your wallet. You're not your khakis. You're the all-singing, all-dancing crap of the world.</p>
body
of the page