Page 19 - PlusGPT_V2.1_C7_Flipbook
P. 19

<title> Superscript and Subscript </title>
                 </head>
                 <body>
                 <h1>The uses of Superscript and Subscript tags </h1>
                 <p> These tags are used to show text as superscript or subscript of
                 another text like chemical formulas or mathematical equations.</p>
                 <p><b>Example of Superscript text</b></p>
                 <p> (a + b)<sup>2</sup> = a<sup>2</sup> + b<sup>2</sup> + 2ab</p>
                 <p><b>Example of Subscript text</b></p>
                 <p>H<sub>2</sub>O</p>
                 <p>H<sub>2</sub>SO<sub>4</sub></p>
                 </body>

                 </html>



















                                               Using <SUBSCRIPT> and <SUPSCRIPT> tags
                      The <FONT> Tag

                 HTML provides the <FONT> tag to change the certain properties such as font size, face and  colour of
                 a block of text on a web page. To do this, the <FONT> tag provides three attributes which you can use
                 in the following way:

                     FACE: It allows you to set the font family such as Times New Roman, Verdana.
                       <font face="Times New Roman"> Animation </p>
                     SIZE: It allows you to set the font size.

                       <font size="4"> Animation </p>
                     COLOR: It allows you to set the font color.

                       <font color="green"> Animation </p>
                 Following web page is created by using the <FONT> tag.
                 <html>
                 <head>
                 <title> Using FONT tag </title>
                 </head>
                 <body>
                 <h1>The uses of the font tag and its attributes.</h1>



                                                                                              Introduction to HTML  17
   14   15   16   17   18   19   20   21   22   23   24