Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

Numbered Lists 77

5


Input ▼


The Last Six Months of the Year (and the Beginning of the Next Year):



  1. July

  2. August

  3. September

  4. October

  5. November

  6. December

  7. January


Output ▼


As with the type attribute , you can change the value of an entry’s number at any point
in a list. You do so by using the value attribute in the

  • tag. Assigning a value in an


  • tag restarts numbering in the list starting with the affected entry.

    Suppose that you wanted the last three items in a list of ingredients to be 10 , 11 , and 12
    rather than 6 , 7 , and 8. You can reset the numbering at Eggs using the value attribute, as
    follows:


    Cheesecake Ingredients



    1. Quark Cheese

    2. Honey

    3. Cocoa

    4. Vanilla Extract

    5. Flour

    6. Eggs

    7. Walnuts

    8. Margarine


    FIGURE 5.4
    An ordered list with
    an alternative num-
    bering style and
    starting number.

  • Free download pdf