Page 33 - Modular_V1.1_Flipbook
P. 33

<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 superscript 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>



                                                                                          Formatting a Web Page   31
   28   29   30   31   32   33   34   35   36   37   38