[UPHPU] proper HTML lists
Mac Newbold
mac at macnewbold.com
Thu Feb 24 14:09:32 MST 2005
Today at 11:02am, Jeffrey Moss said:
> Option 2 makes more sense if you're using CSS. The UL is the indent, the LI
> could be text color or inline list or something.
It might seem to make more sense depending on what you're trying to do,
but it is incorrect. A list should have nothing inside of it but list
elements. Those list elements may in turn contain other lists. But in
option 2, the nested lists are not inside of list elements.
Granted, most browsers render the two identically or nearly so. But
remember the old saying: [paraphrased here]
Where standards are involved, _accept_ incorrect things as liberally as
possible, and _generate_ things that adhere to the standard as strictly as
possible.
Mac
>>> Option 2:
>>>
>>> <ul>
>>> <li></li>
>>> <ul>
>>> <li></li>
>>> <li></li>
>>> <li></li>
>>> <li></li>
>>> </ul>
>>> <li></li>
>>> <ul>
>>> <li></li>
>>> <li></li>
>>> <li></li>
>>> <li></li>
>>> </ul>
>>> </ul>
--
Mac Newbold MNE - Mac Newbold Enterprises, LLC
mac at macnewbold.com http://www.macnewbold.com/
More information about the UPHPU
mailing list