Re: Using <p> elements purely as containers of phrasing elements? Semantic or not?

On Tue, May 7, 2013 at 12:01 AM, Jukka K. Korpela
<jukka.k.korpela@kolumbus.fi> wrote:
> The example being discussed here is
>
> <p><a href="about.html">About</a> - <a href="policy.html">Privacy Policy</a>
> - <a href="contact.html">Contact Us</a></p>
>
> It uses HYPHEN-MINUS “-” as a separator between links. It might argued that
> EN DASH “–” would be more appropriate, but in any case, it separates links
> by punctuation marks. I think this is normal, comparable to listing things
> in a sentence in a natural language: A, B, C, with the comma as separator.
>
> There seems to be a school of thought that wants to use list markup for
> anything that might be construed as a list. Taken to the extremes, that
> would be obviously absurd; you can say that any word is an ordered list of
> letters, so should we write <ol><li>w<li>o<li>r<li>d</ol>? Usually there is
> *some* limit to the requirement, and often the extreme case is just a
> sequence of links. And quite often, authors then want to style the list in a
> simple manner like “About – Privacy Policy – Contact Us”, but they need to
> do extra work to turn the default formatting of <ul> (or <ol>) to something
> that can be achieved very naturally even without using any CSS.
>
> On the practical side, <ul> is good for a bulleted list, <ol> is good for a
> numbered list, and if you don’t want either of them, use some other markup.
> It does not matter much which, as long as each item is marked up as an
> element and there is a container for the items as a set. Then you can style
> it as desired.
>
> HTML5 does not take things quite that practically, but neither does it
> require that anything that looks like a list *must* be marked up as a list.

Hi Jukka,

Thanks for commenting on that.  :)

Kind Regards,
Ian Yang

Received on Monday, 6 May 2013 17:01:44 UTC