Page 85 - TechPluse_C7_Flipbook
P. 85

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>
                 </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
                     designing.</font></p>
                 <p>For example: text size</p>
                 <p><font size = "8"> HTML is a versatile tool for web designing.
                     </font></p>
                 <p>For example: text colour</p>
                 <p><font color = "blue"> HTML is a versatile tool for web designing.
                     </font></p>

                 </body>
                 </html>


                                                                                        HTML—An Introduction         83
   80   81   82   83   84   85   86   87   88   89   90