Forum Moderators: open
Let's say I have twenty short items of text. I want to list these in a way that conveys their relative (and descending) importance.
If I had six items, I'd be sorely tempted to using heading tags, but both the HTML and XHTML specifications only allow for a maximum of six headings. Maybe I should just keep increasing the number anyway, and see how browsers fall over ;)
I could use an ordered list, but I'm unsure about that. To me this implies sequence more than importance (like a recipe). But perhaps it's the most logical option.
Of course, I can also convey this visually, the most simplistic example being font sizes relative to importance. Sometimes I forget that it's HTML that inherited semantics from visual appearance, not the other way round ;)
I suppose the closest 'real world' example of what I'm talking about would be a tag cloud, although it's somewhat different. But while there's lots to read about showing those tags 'semantically' I haven't seen anything about how HTML could also help to convey a similar thing. So, if it helps anyone, I could just rephrase the question to "how to markup a tag cloud?"
If you want to convey importance in descending order, then I would say an ordered list makes the most semantic sense.
For any content that does not fit the (very) limited "document semantics" HTML offers, there's no such thing as semantically correct. I suppose you could do twenty-level repeating <em>'s or <strong>'s but what's the point of shoehorning in spurious semantics of no use to anyone? Just use the most effective (ie shortest) markup for your formatting needs, or actually markup the "importance" data.
I suppose the closest 'real world' example of what I'm talking about would be a tag cloud
And ordered list would be my only semantically correct choice in the real world; in our world it has the advantages of conveying the same semantic meaning by both visual browsers and screen readers.
I don't think I'd consider that a "real world" example
Hey, there're moving parts at the end of the day, Jim. I didn't just dream it ;)
Thanks everyone for the comments. I think I'll go with an ordered list and see how that pans out.
On a side note, I'm no designer really, but I've found the cues from "visual semantics" to be very helpful. So, if I can pick code that is already along the right lines the whole design/development process is much easier (headings are an obvious example, fieldset/legend might be even better).
Headings are for headings - clue is in the name
But this is the problem with my theoretical use - headings are not too far off my intention, although it would be something of an adaptation of the 'real' meaning.
[edited by: Receptional_Andy at 7:50 pm (utc) on Mar. 7, 2008]
Are you saying there are 20 levels of importance to that information?
Perhaps more. But I'm not making a page in the traditional sense. I'm being all experimental ;)