Page 82 - Plus_V2.2_C6_Flipbook
P. 82

<BR> tag


                  This tag is known as the break tag which is used to insert a line break without adding extra space. This
                  is an empty tag. Each <BR> tag inserts one line break.
                  Syntax :- <P>text<BR>new line</P>

                  Now let us insert <BR> tag and see the output.


                   <!DOCTYPE HTML>
                   <HTML>
                   <HEAD>
                   <TITLE>first.html</TITLE>
                   </HEAD>
                                                                          Output:
                   <BODY>
                     Fruits<BR>
                     Apple<BR>
                     Mango<BR>

                     Orange<BR>
                     Cherry
                   </BODY>
                   </HTML>
                                                                                    Output with <BR> tag

                  Now observe that the line breaks have been inserted and each word is printed in the next line due to
                  <BR> tag.


                       <Hr> tag

                  This tag is used to draw a horizontal line across the page.
                  This is an empty tag. The important attributes of this tag are:            Tech Hint
                                                                                         Use <br> sparingly and
                     Size: This attribute  indicates  the  thickness  of the  line in   strategically for proper line
                    pixels. The default value is 3 pixels.                           breaks and maintain semantic
                     Width: This attribute defines the horizontal width of a line              structure.
                    which can be given either in number or percentage value.
                     Color: It specifies the colour of the line.
                     Noshade: This attribute displays a solid line that has no shading.
                  Syntax:

                  <H1>first</H1>

                  <HR>
                  <H1>second</H1>






                  80    Premium Edition-VI
   77   78   79   80   81   82   83   84   85   86   87