Page 73 - 2611_SmartGPT Pro V(5.0) C-7
P. 73

Use of REVERSED attribute with OL tag in HTML.

                 <!DOCTYPE html>
                 <HTML>
                 <HEAD>
                 <TITLE> Ordered List </TITLE>
                 </HEAD>
                 <BODY>

                 <H2> List of Fruits that Grow on Trees:</H2>
                 <OL Type="a" REVERSED>
                 <LI>Almonds</LI>
                 <LI>Apples</LI>
                 <LI>Cherries</LI>
                 <LI>Coconuts</LI>
                 <LI>Lychee</LI>

                 <LI>Oranges</LI>
                 <LI>Olive</LI>
                 <LI>Persimmons</LI>
                 </OL>
                 </BODY>
                 </HTML>

                 UNORDERED LISTS

                 An unordered list is used when the items in the list are not required to be in a specific order. It is
                 also called a bulleted list. An unordered list is enclosed within the <UL> ....... </UL> tag. Each item
                 in the list is given an <LI> tag, which specifies the list item.

                 Write HTML codes to print an unordered list.

                 <!DOCTYPE html>

                 <HTML>

                 <HEAD>
                 <TITLE> Unordered List </TITLE> </HEAD>

                 <BODY>

                 <H2>People working in the field of public health:</H2>
                 <UL>

                 <LI>First responders</LI>
                 <LI>Restaurant inspectors</LI>

                 <LI>Health educators</LI>

                 <LI>Scientists and researchers</LI>



                                                                                          Lists and Tables in HTML5  71
   68   69   70   71   72   73   74   75   76   77   78