The 2 content layers of HTML

A content layer facilitates either multilevel or multidimensional content blocks.

The 2 kinds of content layers and their variants are as follows:

HTML uses the following 17 elements to create content layers:

ol element

An ol element specifies a list of ordered items.

The syntax is a non-void element that expects the following attributes and child elements:

<ol></ol>

ul element

An ul element specifies a list of unordered items.

The syntax is a non-void element that expects the following attributes and child elements:

<ul></ul>

menu element

A menu element specifies a list of unordered command items.

The syntax is a non-void element that expects the following attributes and child elements:

<menu></menu>

li element

An li element specifies a list item within the following elements: ol, menu, and ul.

The syntax is a non-void element that expects the following attributes and child elements:

dl element

A dl element specifies an association list of name-value groups.

The syntax is a non-void element that expects the following attributes and child elements:

<dl></dl>

dt element

A dt element specifies a name part of an association list.

The syntax is a non-void element that expects the following attributes and child elements:

<dt></dt>

dd element

A dd element specifies a value part of an association list.

The syntax is a non-void element that expects the following attributes and child elements:

<dd></dd>

table element

A table element specifies multidimensional content.

The syntax is a non-void element that expects the following attributes and order of child elements:

  1. Zero or one count for each global attribute
  2. Zero or one caption element
  3. Zero or more colgroup elements
  4. Zero or one thead element
  5. Either of the following:
  6. Zero or one tfoot element

Script-supporting elements can optionally intermix with the above elements.

<table></table>

caption element

A caption element specifies the title of a table element.

The syntax is a non-void element that expects the following attributes and child elements:

<caption></caption>

colgroup element

A colgroup element targets one or more columns of a table element.

The syntax is a non-void element that expects the following attributes and child elements:

<colgroup></colgroup>

col element

A col element represents one or more columns in a colgroup element.

The syntax is a void element that expects the following attributes:

<col>

th element

A th element creates a column header cell in a table element.

The syntax is a non-void element that expects the following attributes and child elements:

<th></th>

td element

A td element creates a column cell in a table element.

The syntax is a non-void element that expects the following attributes and child elements:

<td></td>

tr element

The tr element signifies a row of cells in a table element.

The syntax is a non-void element that expects the following attributes and child elements:

<tr></tr>

thead element

The thead element signifies a set of rows of column header cells in a table element.

The syntax is a non-void element that expects the following attributes and child elements:

<thead></thead>

tfoot element

The tfoot element signifies a set of rows of column footer cells in a table element.

The syntax is a non-void element that expects the following attributes and child elements:

<tfoot></tfoot>

tbody element

The tbody element signifies a set of rows of column cells in a table element.

The syntax is a non-void element that expects the following attributes and child elements:

<tbody></tbody>