$Id: review-html.txt,v 1.1 2006/02/10 00:19:07 locasto Exp $ Spring 2006 COMS 1001 ---------------------------------------------------------------------- HTML Review 0. How do you look at the source code for a webpage in Firefox? Keyboard shortcut: Press Control+U Menubar: View>Page Source Mouse: Right Click, Select "View Page Source" 1. What does HTML stand for? HyperText Markup Language 2. What does a web (HTML) page consist of? "Tags" and "content." The tags tell the browser how to render (that is, how to draw, size, and display) the content. Tags are special commands that instruct the browser how to format the content. They are distinguishable from the content because they are usually paired (a "begin" tag and an "end" tag) and they are contained in angle brackets "<" and ">" 3. What is a good resource for learning HTML tags? Google. Or visit webmonkey.com for their "HTML Cheatsheet" 4. What are some example tags? -- signal the beginning of an HTML document. This is known as the "root" tag. -- signal the end of an HTML document -- signal the beginning of the header for the webpage -- signal the end of the header -- signal the beginning of the body content for the webpage -- signal the end of the body content

-- begin a new paragraph

-- end a paragraph
-- insert a line break
-- draw a horizontal rule (line) across the page -- render the enclosed content in italics -- render the enclosed content in bold -- render the enclosed content as underlined

-- render the enclosed content as the largest heading size
-- render the enclosed content as the smallest heading size 5. What are tag "attributes?" Sometimes tags need additional information about how to display content. Tag attributes provide a mechanism to specify this additional control. If you think of a tag as an instruction (or like a Bash command), then attributes are the arguments to the instruction or command that influence its behavior. Attributes are represented by name/value pairs in the following format: attribute_name = "some_value" A tag has a set of legal attributes associated with it. You can specify more than one attribute for a tag by providing a list in the tag body like so: