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>
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>
Deeply understand semantic HTML authoring and CSS with my course:
Understanding HTML and CSS.