Page 51 - modular_v2.0_HTML&_CSS_Fb
P. 51

THE <P> TAG

                 The <P> tag defines start and end of a paragraph in the text. It is a container tag. Whenever you
                 want to start a new paragraph, you can start the paragraph tag using <P> tag. It is primarily used
                 to group text into paragraphs, which are the basic building blocks of a document. The paragraph
                 tag automatically inserts a blank line between two paragraphs.

                 Following web page is created by using the <P> tag:

                 <!DOCTYPE HTML>
                 <HTML>
                 <HEAD>

                 <TITLE> Example of Paragraph</TITLE>
                 </HEAD>

                 <BODY>
                 <P> First paragraph of content</P>
                 <P> Second paragraph of content</P>

                 <P> Third paragraph of content</P>
                 <P> Fourth paragraph of content</P>
                 </BODY>

                 </HTML>
                 Output of the preceding HTML code is as follows:





















                                                            Using <P> Tag

                    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 means that 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>You use a <BR/> break tag to start <BR/> a new line.</P>





                                                                                                                49
                                                                                        Formatting a Web Page
   46   47   48   49   50   51   52   53   54   55   56