Page 154 - Web Applications (803) Class 11
P. 154

The <P> Tag
              The <P> tag defines start and end of a paragraph in the text. It is both a container as well as an empty tag. Whenever
              you want to start a new paragraph, you can start the paragraph tag using <p> without closing the previous paragraph
              tag. In order to avoid confusion, it is advised to use this tag as a container tag starting with the <p> tag and ending with
              the </p> tag. The paragraph tag automatically inserts a blank line between two paragraphs.

              The <BR> Tag

              The <BR> tag is used when you want to start a new line, but do not want to start a new paragraph. This tag is also
              known as line break. It is mainly used when you want your text to come in next line without leaving a blank line in
              between. This tag forces a line break wherever you will place it. It is an empty tag. It is used as under:

              <p align=“center”> You use line <br> break tag to start a <br> new line </p>
              It will be shown on your web page as under:
                                                             You use line
                                                          break tag to start a
                                                               new line

              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 Size="10" width="80%" >
              <p>This is the second paragraph of the tag.HTML is the standard markup language
              for Web pages.</p>
              <hr Size="10" width="80%" color="grey">
              <hr Size="10" width="80%" color="Red">
              </BODY>
              </HTML>


















                152     Touchpad Web Applications-XI
   149   150   151   152   153   154   155   156   157   158   159