Tag StructureEnclosed in angle brackets: <tag>Most are paired: <tag> ... </tag>Some are single: <tag />Tag has element and optional attributeTag element: <name>Tag attribute: <name attribute=”value”>
3
Tag Examples
Pairs enclose content: <h1>Heading</h1>Single ones just do something: <br />Tag with attribute: <img src=”image.jpg” />
4
Document Tags
<html> ... </html> <head> ... </head><title> ... </title><body> ... </body>
6
Page language Page headWindow titlePage body
Content TagsHeadings Rules & BreaksText StyleGroupingsListsImages & LinksTables
7
<h1>, <h2>, ... <h6><hr />, <br /><p>, <strong>, <em><span>, <div><ol>, <ul>, <li><img src=”file”>, <a href=”url”><table>, <tr>, <th>, <td>
Referencesrooseveltcs.org/courses/web-design/resources
HTML Cheat SheetHTML Reference ListHTML Color Picker
www.w3schools.com/htmlMany tutorials & examples
8