Page 97 - iPrime_V2.2_class6
P. 97

The <HR> Tag

                 The <HR> tag is used when you want to divide your web page into different sections. It is also
                 used when you want to draw a line between two paragraphs. It is an empty tag and does not
                 need an end tag. It gives a horizontal ruler (line) on the page, and then the next element will be
                 shown in a new line after the ruler.

                 <!DOCTYPE HTML>

                 <HTML>
                 <HEAD>
                   <TITLE>HR Tag</TITLE>

                  </HEAD>

                 <BODY>
                   <P>This is the first paragraph of the tag. HTML is the standard markup
                 language for Web pages.</P>
                   <HR>

                   <P>This is the second paragraph of the tag. HTML is the standard markup
                 language for Web pages.</P>

                   <HR>
                 </BODY>
                 </HTML>















                 The Bold Tag

                 The Bold tag is written as <b>. This tag is used to give a 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 pairs as <b> and </b>.
                 The Italic Tag


                 The Italic tag is written as <i>. This tag is used to give an 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 pairs as <i> and </i>.
                 The <SUP> Tag

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

                                                                                         HTML—An Introduction      95
   92   93   94   95   96   97   98   99   100   101   102