Page 83 - Plus_V2.2_C6_Flipbook
P. 83

Example:


                  <!DOCTYPE HTML>
                  <HTML>
                    <HEAD>

                      <TITLE> Trying HR tag </TITLE>
                    </HEAD>
                    <BODY>
                      Let us draw lines in the web page using hr tag
                      <BR>
                      HTML language is a simple language which is used to design web pages.
                      <HR size=7 color=green>
                      Different types of lines can
                  be drawn using various attributes
                  of hr tag.
                      <HR size=5 width=75% noshade>
                    </BODY>
                  </HTML>                                                    Output of the code using <Hr> tag

                 Note: Only part of the screen is shared.


                      Some More Tags

                 Now, let us look at some more tags.
                   <B> tag: This tag is used to mark the text within the tag as bold.
                   <I> tag: This tag is used to show the text in italics.
                   <SUB>: The <SUB> tag is used to turn the enclosed text into a subscript. For example, H O is coded
                                                                                                          2
                   as H<SUB>2</SUB>O
                                                                                                                  2
                   <SUP>: 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>
                 All the above three tags are container tags and they are physical tags which affect the appearance
                 of the text.
                 Example:

                  <!DOCTYPE HTML>
                  <HTML>
                  <HEAD> <TITLE> Trying physical tags </TITLE> </HEAD>
                  <BODY>
                  <B> XYZ Public School, Agra</B><BR>
                  <I> A co-educational School</I><BR>
                  Superscript: E=mc<SUP>2</SUP><BR>
                  Subscript: H<SUB>2</SUB>O
                  </BODY>
                  </HTML>                                                                   Output



                                                                                             Introduction to HTML5  81
   78   79   80   81   82   83   84   85   86   87   88