Lars Eighner said:
Isn't the difference between UL and OL really just *gasp*
presentational.
Hello Lars.
Yes and no. It is an interesting thing to ask and I would answer in the
end by saying that some presentation is deeper and captures a reality
better than other presentations. So I take issue with your use of
"just". It can get to the point where presentation makes *all* the
difference! So much so that we can say an ol is really a different beast
to an ul.
uls and ols are not quite like animals that can be captured and
inspected and declared to have this or that. We can try to guess the
intentions of the creators of them. We can stare at the written
technical "standards". Or we can simply understand as best as we can
what would be a reasonable sounding interpretation that made both ul and
ol good and useful. Frankly, I suspect it might have been better for the
world had ols not been borne but we have them and so better think how
best to use them.
One interpretation and use for ols that I favour makes them very
different to styled uls. Sure, you *can* go another way and use an ol
because it gets you some nice numbers for various purposes other than
that the list items have a sequential order that is wanted to be
conveyed. For example:
Aesthetic, it might simply look nice!
Reader usability, it helps to keep track of what item the reader is up
to (not that it *really* matters which item is first) so he doesn't lose
his place when he is suddenly distracted by something... easy to
remember that he was up to item 15... this sort of thing...
There are a million *no-real-ordering* motivations. I guess you might
call these presentational motivations. I am not quite as sure. You might
use an ol to be conveying the count of items, straightforward decimal
numbering will give the number on the last item usually. Useful if you
are shopping and simply have a check if you have missed something. The
number of items bought should at least match the last item number. You
are using and the user is appreciating the ol's facilities here. It
gives a count, is that presentational? Maybe, maybe not.
But I believe there is another thoroughly pure thing that an ol can be
used for. For when you are conveying an ordered set of things, the order
being an important part of the meaning. In this pure role, the ordered
list is an amalgam of two unordered lists, one is the numbers that
represent the order and the other is the ordered items.
Here is a list of three people in order of tallness of three children in
a house:
Tallest: Alice
Neither the tallest nor the shortest: James
Shortest: Matilda
No matter what the order of these lines, the meaning of the results
would be exactly the same.
But if you want to communicate this information in a shorthand and well
known way, you map the three children onto numbers which are known to
grow from smaller to larger. This allows considerable economy of
expression. Don't let the simple example mislead you, there could be a
lot more to keep track of! They might be children of the Chinese state!
We have an unending supply of numbers, and we know how they represent
growing quantity. So we use our ability to generate such numbers to map
big and small and in between...
You might be puzzled when I said that the numbers that represent the
order is an unordered list (if you have got this far reading me <g>). 1,
5, 7, 3 are just numbers and they are what they are no matter what order
we get the numerals in. We would not go:
2. James
1. Alice
3. James
and *explain* that the numbering indicates the order, lowest number is
tallest. But better to let presentation do the talking, and avoid having
to explain so much...
We should explain (for really clear communication), when the numbers are
*not* for the purpose of communicating information abut order! And I
would advise, not use ols unless they are really needed to convey
sequential order.
The tag ol marks things. This tag could alert a browser to do set
things, when it sees an ol, whether there be numerals there or not. It
could have a preprogrammed speech like: "The order is important in the
following list" (It might be too hard for it to know anything more fine
grained than this) or it could insert some text to the same effect,
saving the author. The point I am making is that given we have an ol,
lets use it right. If the order does not matter, use a ul.