More than you need to know about lists

The ol element has the reverse list attribute (reversed), which gives the items in reverse order, and start list attribute (start), which starts numbering from the given integer value. For a list item in such a list, an li element can have a value list attribute (value) which resets the numbering to start from the given number.

Here are a few features to notice in the example:

  • The order of the first list in Greek letters is reversed.
  • Setting value to 9 in a particular list item changes not only the number of the current item but also those that follow. Here you can see that the next item has the number 10.
  • Setting value to 17 in the alphabetical list results in the item being given the letter q (which makes sense, as q is the seventeenth letter in the alphabet).
  • The use of the attribute value in the li element in the unordered list has no effect.

Note:

Hints:

  • undefined
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
<!DOCTYPE html>
<html lang="en">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
.alpha {
    list-style-typelower-alpha;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX