HTML Basics
Announcements Office hours begin this week No assignment this week Spend the time getting help and understanding
HTML Tags < tag-name [attribute-name=value]> </tag-name> No attributes on end tag Blank lines and spaces don’t matter
Two types of commands Start/end commands <command> ... </command> Single commands < command> or < command />
Important Difference Whether they start a new line or not Paragraphs do Emphasize does not
The Basics Regular text = paragraph Heading numbers represent style, not order Lists consist of list delimiters and list items
Correctly Nested Tags Some can take any content Some have restrictions divisions, footers Some have restrictions Paragraphs can not have lists inside them Some tags are limited as to where they can appear List items can only appear in lists Incorrectly nested tags MAY appear to work
How do you know? Validation http://validator.w3.org/
Formatting your SOURCE Comments <!-- any text you want --> Indentation Nested parentheses Multi-line Line up start and end Things inside belong one tab over Single line Start, content, end on a single line Always include your name in date in every file
Formatting Help http://www.freeformatter.com/html-formatter.html
Lab