Page 17 - 2619_PlusGPT V2.1_C-7
P. 17

The <B> Tag

                 The Bold tag is written as <B>. This tag is used to give bold effect to your text. You need to tell the web
                 browser when to start using the bold effect and where to stop using the bold effect. It is a container
                 tag and used in pair as <B> and </B>.


                      The <I> Tag
                 The Italic tag is written as <I>. This tag is used to give italic effect to your text. You need to tell the
                 web browser when to start using the italic effect and where to stop using the italic effect. It is also a
                 container tag and used in pair as <I> and </I>.

                      The <U> Tag

                 The Underline tag is written as <U>. This tag is used to underline your text. You need to tell the web
                 browser when to start underlining and where to stop underlining the text. It is a container tag and
                 used in pair as <U> and </U>.

                 Following HTML web page uses the <B>, <I> and <U> tags.
                 <html>
                 <head>
                 <title> Applying styles </title>
                 </head>
                 <body>
                 <h1>The uses of Bold, Italic and
                 Underline tag </h1>
                 <p> This is a normal text without the
                 use of Bold, Italic or Underline tag</p>
                 <p><b>This text is in bold.</b></p>
                 <p><i>This text is in italics.</i></
                                                                                    Using <B>, <I>, <U>  tags
                 p>
                 <p><u>This text is underlined.</u></p>
                 </body>
                 </html>

                      The <SUP> Tag

                 The superscript tag is written as <SUP>. This tag is used to turn the enclosed text into a superscript. For
                                2
                 example, E=mc  is coded as  E=mc<sup>2</sup>
                      The <SUB> Tag

                 The subscript tag is written as <SUB>. This tag is used to turn the enclosed text into a subscript. For
                 example, H O is coded as  H<sub>2</sub>O
                            2
                 <html>
                 <head>
                 <title> Superscript and Subscript </title>
                 </head>



                                                                                              Introduction to HTML  15
   12   13   14   15   16   17   18   19   20   21   22