XHTML 2.0 Explained - Get Ready for New Types of Lists
(Page 3 of 6 )
The <nl> tag is coming and it represents the new navigational lists. Navigational lists work so well because users select them in order to see more. It works like a menu. It has a <label> element that defines the heading for the navigation list. Something like this would be a list:
<nl>
<label>Heading</label>
<li href = "#section1">Section1</li>
<li href = "#section2">Section2</li>
</nl>
This is not the only new list. Definition lists have headings and list items below them. It defines four tags (dl, dd, dt, and di) but is fairly simple. Everything is in the <dl> tag and then you have a <di> for each section. The <dt> contains inline content (the heading) and the <dd> will then contain block level content. Something like this:
<dl>
<di>
<dt>Heading 1</dt>
<dd>Content Content Content</dd>
</di>
<di>
<dt>Heading 2</dt>
<dd>Content Content Content</dd>
</di>
</dl>
Next: Sections and Headings >>
More HTML Articles
More By Sasha Slutsker