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

, ,
Want to master JavaScript in a week? Buy Xah JavaScript Tutorial.

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

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

Here's the HTML code:

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

Here's how your browser renders it:

Cat
Lovely creature.
Octopus
Intelligent creature.

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

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

Back to HTML5 Tags Complete List.

blog comments powered by Disqus