Page 115 - CodePilot V5.0 C7
P. 115

<LI>Limit screen time</LI>

                 </OL>
                 </BODY>
                 </HTML>
                 The above code will create an ordered list with numbering starting in descending order because
                 the reversed attribute is used.


                 UNORDERED LIST

                 An unordered list is also known as a bulleted list created with the <UL> tag and closed with </UL>.
                 Items are added using <LI> tags and the default marker is a round black bullet. It is used when the
                 items do not need to be in a particular sequence.

                    Code     Write the HTML code to present the given web page using the <UL> tag to display
                      4      an unordered list.


                 <!DOCTYPE HTML>
                 <HTML>

                 <HEAD>

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

                 <BODY STYLE="BACKGROUND-COLOR: #FFFACD;">

                 <H1 STYLE="COLOR: #2A9D8F;">Types of Energy</H1>
                 <UL>

                 <LI>Solar Energy</LI>

                 <LI>Wind Energy</LI>
                 <LI>Hydroelectric Energy</LI>

                 <LI>Geothermal Energy</LI>

                 <LI>Electrical Energy</LI>
                 </UL>

                 </BODY>

                 </HTML>

                                                                                            21 st   #Critical Thinking
                      INTERDISCIPLINARY LEARNING                                           Century   #Technology Literacy
                                                                                            Skills
                   Write the HTML code to create an unordered list of class rules using
                   the <UL> tag.                                                           moral science







                                                                                                                  113
                                                                                          Lists and Tables in HTML5
   110   111   112   113   114   115   116   117   118   119   120