Using the new reversed attribute, you can tell the browser that the numbering for the list items should display in descending order, instead of the default ascending. The items will still appear in the same order as they appear in the markup, but the numbers will begin with the highest. So if you have 10 list items, then the first list item will display with a number 10, and the second with a number 9, and so forth.
The syntax is simple, you just add the reversed attribute to any element. This attribute is a Boolean attribute, so it doesn’t take any value. If you’re using an XHTML doctype, you would need to do reversed to pass validation.
Comments
Be the first to write a comment
You must me logged in to write a comment.