Page 114 - CodePilot V5.0 C7
P. 114

Code     Write the HTML code to present the given web page using the <OL> tag with the
                       2      START and TYPE attributes to create an ordered list.


                  <!DOCTYPE HTML>
                                                                                             SHORT SIGN
                  <HTML>
                                                                                            To open Developer
                  <HEAD>
                                                                                             Tools in the web
                  <TITLE>Ordered List</TITLE>                                                  browser: 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     Write the HTML code to present the given web page using the REVERSED attribute
                       3      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>
                  <OL START="5" TYPE="A" REVERSED>
                  <LI>Use strong passwords</LI>

                  <LI>Enable 2FA</LI>
                  <LI>Update software</LI>
                  <LI>Beware of phishing</LI>



                   112
                        CodePilot (V5.0)-VII
   109   110   111   112   113   114   115   116   117   118   119