| TOP-LEVEL TAGS | HEAD ELEMENTS | |
| doctype (38) : defines the language and HTML dialect | meta (417-20) : additional info about the page, site, etc. | |
| html (60): surrounds the HTML for a page | title (64) : appears in the browser titlebar | |
| head (62) : surrounds the header info (see next column) | link (149) : includes a style sheet in an HTML page | |
| body (62) : the actual page content. You can also apply properties to the entire page, and execute Javascript when the page is loaded. | style (151-3) : embedded style declarations script (314) : embedded Javascript |
|
| BLOCK ELEMENTS (always begin on new line; height, line-height, margins can be set; default width is 100% of containing element) | INLINE ELEMENTS (always begin on same line; can't change heights or margins; width is only as long as the element, and can't be changed) | |
| div (68) : creates a box (container) that can be sized, styled, and positioned. | a (118) : creates a hypertext link | |
| h1,h2,h3,h4,h5,h6 (65) : headers of varying sizes (h1 is largest) | br (70): forces the next HTML element to start on a new line | |
| p (66) : defines a paragraph of text | img (104) : inserts an image into the page | |
| table {tr, td} (217) : creates a table (like this one) | span (69) : used to apply formatting to a limited span of text or other elements | |
| form {input, select, textarea} (269) : creates a form for accepting user input | iframe (248) : an inline subwindow that displays an entirely different HTML page | |
| blockquote (78), pre (77) : different kinds of nonformatted inclusions | ||
| LISTS (block elements that provide support for lists of things) | PROPERTIES (both inline properties and mechanisms for applying CSS styling) | |
| ul {li} (204, 262) : an unordered list | strong, em (74) : makes text boldfaced or italic | |
| ol {li} (204) : an ordered list | style (153) : for applying inline CSS directly to an HTML element | |
| dl {dt, dd} (211) : creates a definition list | class (67) : for assigning a CSS class to an element | |
| id (67) : uniquely identifies an element for CSS or DOM manipulation |
Here are some Examples of Common HTML Tags.