Grokking HTML
0% completed
HTML Description Lists
How should a web page mark up the facts printed under a recipe title: "Prep time: 30 minutes", "Baking time: 25 minutes", "Makes: 12 rolls"? An ordered list does not fit, because the facts have no sequence. An unordered list does not fit well either, because every item has two parts, a name and a value, and a bullet cannot show which part is which. HTML has a third kind of list for exactly this case.
A list of names, each followed by what belongs to it, is a description list. HTML writes it with three elements: <dl> ("description list") marks the whole list, `<dt>
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%