Page 67 - modular_v2.0_HTML&_CSS_Fb
P. 67

<OL  START="1"  STYLE="list-style-type:decimal;"> - will start the list from 1 if

                      the list-style-type property is set to decimal. By default, HTML starts from 1 if the START
                      attribute is not specified.
                      <OL START="4" STYLE="list-style-type:LOWER-ALPHA;"> - will start the list from d
                      if the list-style-type property is set to lower-alpha.
                      <OL START="5" STYLE="list-style-type:UPPER-ALPHA;"> - will start the list from E
                      if the list-style-type property is set to upper-alpha.

                      <OL START="2" STYLE="list-style-type:LOWER-ROMAN;"> - will start the list from ii if
                      the list-style-type property is set to lower-roman.
                      <OL START="4" STYLE="list-style-type:UPPER-ROMAN;"> - will start the list from IV if
                      the list-style-type property is set to upper-roman.
                 The START attribute accepts only integer values.

                 Let us use the <OL> tag.
                 <!DOCTYPE HTML>
                 <HTML>

                 <HEAD> <TITLE> Ordered List or Numbered List </TITLE> </HEAD>
                 <BODY>
                 <B> Cup of Tea </B>

                 <HR/>
                 Steps to make a cup of Tea.
                 <OL STYLE="list-style-type:decimal;">
                        <LI> Take 3/4 cup of water and boil it in kettle. </LI>

                        <LI> Add a table spoon sugar. </LI>
                        <LI> Add 1/4 cup of milk. </LI>
                        <LI> Pour the tea into a cup. </LI>

                        <LI> Add a tea bag. </LI>
                 </OL>
                 </BODY>
                 </HTML>



















                                                              Ordered list

                                                                                                                65
                                                                                                Lists in HTML
   62   63   64   65   66   67   68   69   70   71   72