Link: http://w3schools.com/tags/tag_dl.asp
Using ul and ol for lists with XHTML is nice, but for lists that include a short title, dl is a great option.
The code below produces a nice list, where Term and Word are bolded, and Definition and Value follow on the same line.
Code:
<style type="text/css"> | |
dt{clear:left;float:left;width:50px;font-weight:bolder;} | |
</style> | |
<dl> | |
<dt>Term</dt> | |
<dd>Definition</dd> | |
<dt>Word</dt> | |
<dd>Value</dd> | |
</dl> |