Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 30 - CoreGPT(Podar)_Flipbook_C8
P. 30

    <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 </font>

                           SIZE: It is used to change the size of the font. The syntax to change font size is <font size="?">.

                          The user has to enter the font size in place of the question mark.
                      The following code shows the use of size attribute.

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

                            <font color="green"> Animation </font>
                      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>
                      <p> This tag is used to define various properties of text. </p>
                      <p><b>For example: text face </b></p>
                      <p><font face = "Comic Sans MS"> HTML is a versatile tool for web

                     28     Premium Edition-VIII

| 25 26 27 28 29 30 31 32 33 34 35 |