« Recipes

HTML Recipes

Data With Labels

Labeled data are name/value pairs, thus dl, dd and dt are appropriate markup elements.

<h2>Pizza Choices</h2>
<dl>
<dt>Size</dt>
<dd>Large</dd>
</dl>
<dl>
<dt>Topping 1</dt>
<dd>Pepperoni</dd>
</dl>

References

The dl element |  The dt element  |  The dd element

Deeply understand semantic HTML authoring and CSS with my course:
Understanding HTML and CSS.