Page 177 - Computer Software Application TP - Volume 1
P. 177

COMPUTER SOFTWARE APPLICATION - CITS




















           TASK 5: Using CSS Group Selector
           1  Open the text editor
           2  Write the following codes
              <html>
              <head>

              <style>
              h1, h2, p {
              text-align: center;
              color: blue;
              }

              </style>
              </head>
              <body>
              <h1>Hello Javatpoint.com</h1>
              <h2>Hello Javatpoint.com (In smaller font)</h2>

              <p>This is a paragraph.</p>
              </body>
              </html>
           3  Save the program as a .html file

           4  Open the html file with a web browser
           5  Verify the output.



























                                                           162

                               CITS : IT & ITES - Computer Software Application - Exercise 44
   172   173   174   175   176   177   178   179   180   181   182