I want to display a leaderboard like so:
1 - John 232342
2 - Mary 45234
3 - Luke 234
59 - You 45
It's an ordered list but I can't make an ordered list that jumps from 3 to an arbitrary number.
So how should I mark this up?
If I'm reading the HTML5 spec correctly you can do as suggested in Roger's answer and use an ordered list and then use a value attribute on one of the li elements to skip a few numbers:
The usual way that I've seen this done is with an ellipsis. Something like:
Edit: For markup I would use an unordered list and insert the numbers into the name and use the ellipsis as an item.
Otherwise you end up with some difficult situations when the user is #4, as you would have an ellipsis where it doesn't make sense, or when the user is #2.
Here's a couple of options - but I think li's value is deprecated in HTML4 - and I don't know if it can be done in CSS.
This gives the following:
The common way of showing that a Y (or X) axis has a gap is to make a strike through or dots..
None is more correct than the other, more of a aesthetic point of view...