Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 54 - 2609_Logiccode
P. 54

    Roman numerals (uppercase and lowercase): I, II, III, IV, i, ii, iii, iv

                         Letters of the alphabet (uppercase and lowercase): A, B, C, D, a, b, c, d
                      Code 2.  Write the HTML code to present the given web page using the <OL> tag with the START
                               and TYPE attributes to create an ordered list.

                      <!DOCTYPE HTML>
                                                                                                     To open Developer
                                                                                                SHORT KEY
                      <HTML>                                                                         Tools in the web
                      <HEAD>                                                                         browser:

                      <TITLE>Ordered List</TITLE>                                                           F12
                      </HEAD>

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

                      <H1>Cyber Safety Tips</H1>
                      <OL START="3" TYPE="A">

                      <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 code  displays  an ordered  list  starting  from C  (START=“3”) with  uppercase  letters
                      (TYPE=“A”).  The start  attribute  accepts  only integer  values, whether the  list  uses  numbers,
                      Roman numerals or letters.

                      You can add the reversed attribute to display the list in descending order.

                      Code 3.  Write the HTML code to present the given web page using the REVERSED attribute to
                               display numbering in descending order.

                      <!DOCTYPE HTML>

                      <HTML>
                      <HEAD>

                      <TITLE>Ordered List</TITLE>

                      </HEAD>
                      <BODY STYLE="BACKGROUND-COLOR: #F0F8FF;">

                      <H1>Cyber Safety Tips</H1>

                       52   Premium Edition-VII

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