HTML examples: {dl, dt, dd} for Definition List

Advertise Here

,

This page gives a example of HTML's {dl, dt, dd} tags.

These 3 tags are used together for a list of definitions. Example:

Cat
Lovely creature.
Octopus
Intelligent creature.

Here's the HTML code:

<dl>
 <dt>Cat</dt><dd>Lovely creature.</dd>
 <dt>Octopus</dt><dd>Intelligent creature.</dd>
</dl>

By default, browser does not do any extra special rendering for them. Use CSS for that.

http://dev.w3.org/html5/spec-author-view/the-dl-element.html#the-dl-element

Back to HTML5 Tags.

blog comments powered by Disqus