Page 134 - 2403_Trackpad_V5.1_C6_Fb
P. 134

6.  Do as Directed.                                                                            4×2.5=10
                  a. Create an HTML program on the basis of desired output given:













                  b. Identify and correct the errors in the following HTML code snippet:

                     body {
                        font-family: arial;
                        background-colour: lightblue;
                     }
                     h1 {
                        text-align: center;
                        color: red;
                        font-size: 2em
                     }
                     p {
                        font-size: 18px;
                        font-style: italic;
                        color: blue;
                        margin-bottom: 15px;
                     }
                  c. Find the output of following HTML code:
                     <!DOCTYPE HTML>
                     <HTML>
                     <HEAD>
                      <TITLE> Test Page </TITLE>
                     </HEAD>
                     <BODY>
                      <H1> Welcome to HTML </H1>
                      <P> HTML is fun! </P>
                      <HR COLOR=”blue”>
                     </BODY>
                     </HTML>
                  d. Create a basic webpage using HTML that displays the following:
                        • A title on the browser’s title bar as “Horizontal Rule Example”.
                        • A heading that says “HR Tag Example”.
                        • A paragraph with the text “The horizontal rule tag is used to separate content”.

                        • Include a horizontal rule with a size of 5 pixels and a width of 50% of the page.






                  132   Premium Edition-VI
   129   130   131   132   133   134   135   136   137   138