Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 55 - 2609_Logiccode
P. 55

    <OL START="5" TYPE="A" REVERSED>

                     <LI>Use strong passwords</LI>
                     <LI>Enable 2FA</LI>

                     <LI>Update software</LI>

                     <LI>Beware of phishing</LI>
                     <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 4.  Write the HTML code to present the given web page using the <UL> tag to display 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>

                                                                                              Lists and Tables in HTML5  53

| 50 51 52 53 54 55 56 57 58 59 60 |