Semantic value: ul li, ol li vs. dl dt dd
-
<dl>
-
<dt>Name: </dt>
<dd>John Don</dd>
<dt>Age: </dt>
<dd>64</dd>
<dt>Gender: </dt>
<dd>Male</dd>
<dt>Day of Birth:</dt>
<dd>12th May 1946</dd>
-
</dl>
-
VS.
- Unordered lists
- Use a <ul> tag where the order of items is not significant.
- Ordered lists
- Use an <ol> tag where the order of items is significant, e.g. listing events in time order, or race results
This entry was posted on Monday, March 8th, 2010 at 4:58 am and is filed under HTML. You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.