You are here: Re: Semantic of a nested list? « HTML « IT news, forums, messages
Re: Semantic of a nested list?

Posted by John Hosking on 02/22/07 03:04

Andrew wrote:

> In a page that I have only just started writing (only a paragraph or 2
> there) I have produced an ordered list nested within a definition list:
>
> http://people.aapt.net.au/~adjlstrong/bibliophile.html
>
> Now I am happy that this use of lists demonstrates my meaning adequately,
> surely an important consideration, but is it a semantically correct way
> of conveying this meaning?
>
> Quite frankly I think it would be unnecessarily cumbersome to nest
> another <dd> and then style the element to produce numbers before each
> item. I believe that what I have written is a compromise between good
> syntax and good communication.
>

Well, /that/ part of your page looks fine to me, but I don't understand
this:
<ol>
<li> <a href="index.html">Andrew's Corner</a> : </li>
</ol>
You've knowingly styled this <ol> with list-style:none so no number
shows up. Isn't then an hx header or just a div (which you already have)?

I also see a bunch of empty elements (<p></p> <h2></h2> <p> </p>) down
below. If you're worried about worrying too much, you should worry more
about the markup *besides* the stuff you're worried (asking) about!

Anyway, I don't know how you'd "style the element to produce numbers
before each item" in a nested <dd>. I would think the alternative to
what you've chosen would be something manual, like:

<dd>A term for... <br>
1. <em>Biblos</em> : In Phoenician times... <br>
2. <em>Philew</em> : An Ancient Greek ... </dd></dl>

I think I like your current way better.

--
John

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация