A div (division) is a block level element that can contain any number of any sort of element, including other divs. The topic divisions on this page have a background color of white.
A blockquote element.
In use, this should be
a long quote or citation,
though it can contain most of the other elements.
A pre element is block level and can contain inline content, but it is best for displaying wh it e- spa ce and line break preserved text.
li and dd elements can contain most block and inline elements, including other lists...
A span is an inline element that can contain any number of inline elements.
An em element in a paragraph. (<em>...</em>)
A strong element in a paragraph. (<strong>...</strong>)
A wordsub element in a paragraph. (<sub>...</sub>)
A wordsup element in a paragraph. (<sup>...</sup>)
An abbr element (eg, USA) in a paragraph. (<abbr>...</abbr>)
A kbd element in a paragraph. (<kbd>...</kbd>)
A samp element in a paragraph. (<samp>...</samp>)
A code element in a paragraph. (<code>...</code>)
A var element in a paragraph. (<var>...</var>)
A quote
element in a paragraph. (<q>...</q>)
(There are no quotation marks in the source, or displayed by IE6.)
These two elements are odd ducks- they are more like formatting directions than elements. They do not contain anything and have no end tags. Each one separates its containing element into two parts, before and after itself.
One caption, before any content
<caption>
No more than one thead and one tfoot element per table, both defined,if they exist, before any tbody section.
Any number of tbody's, each with any number of rows and colums made of either <td> or <th> cells.
Table header cells (<th>) usually fill the first row and/ or the first column of a table, but they can be placed anywhere an ordinary cell (<td>) can be.
Table structures are based on horizontal (row) relations- cols and colgroups can represent their members for calculations and some display effects, but the priority is cell, row, tbody, (or thead or tfoot), table.
| table header cell | table header cell |
|---|---|
| table footer cell | table footer cell |
| table header cell (th in tr) | table cell (td in tr) |
| table header cell | table cell |
| table header cell | table cell |
| table header cell | table cell |
| table header cell | table cell |
A hyperlink is an <a> element with a 'href' attribute
An <a> element cannot contain another <a> element, but it can "wrap" around most other content
Any element with an id can be the target of a link
The image tag imports its content from an url with the 'src' attribute
An image is an inline element.
An iframe (inline frame) is in the css cascade of its containing page,
but the document
inside the iframe has its own css heirarchy.
The object element can be used for images, remote html, and other media or programable data.
fieldsets, legends and labels make a form easier to organize and use.
Each label may contain one input element
The input element has no end tag or html content