Forum Moderators: open
Opinions?
Marshall
What is wrong with simple <br> between each new line of links or each link being in a <p> when the navigation is simple.
What's wrong with <br><br><br><br><br><br> to space an item out?
or to intend copy?
Or <font>, or inline CSS, or nested tables?
Really, I think it's all about semantics, using the right tool for the job.
What's wrong with <br><br><br><br><br><br> to space an item out?
It is above all about accessibility - that's why we use semantic markup. The markup should express clearly the purpose of the content, and the reason why you should use a list for a menu is evident when you disable CSS rather than apply it. :)
The markup should express clearly the purpose of the content
exactly!
it even "strongly recommended" in the HTML 4.01 recs under LISTS [w3.org]
note this is the section on the <dir> and <menu> elements both of which where deprecated as they were only extra containers for <li> elements
Theelement was designed to be used for creating multicolumn directory lists. TheDIRelement was designed to be used for single column menu lists. Both elements have the same structure asMENU, just different rendering. In practice, a user agent will render a DIR or MENU list exactly as a UL list.ULWe strongly recommend using UL instead of these elements
the <br> element is possibly the most unnecessary element in HTML, except for the much debated point about poetry and addresses, and I see that is exactly what HTML5 says about the usage of <br> [w3.org]
for:
br elements must be used only for line breaks that are actually part of the content, as in poems or addresses.
against:
The following examples are non-conforming, as they abuse the br element:<p><a ...>34 comments.</a><br>
<a ...>Add a comment.<a></p>
it is accessibility pure and simple try listening to a list of links separated only by a comma, or a br then try listening to a list as a list :)
The web is intended to be interpreted by all sorts of user-agents which are not sighted humans.
If you don't mark up elements to describe what they are, then any user-agent which does not conceptualise your web-page as a 2D tablet to be read like a newspaper page will not understand what those elements are, nor what role they play on the page.