Page 163 - Dig_CodeAI_V2.1_Class_7
P. 163
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.
Align Attribute
A paragraph can be aligned using the align attribute. Various values of the align attribute are given
in the table below.
Value Description Example
Left Left-aligns the text <P Align = “Left”> Text goes here. </P>
Right Right-aligns the text <P Align = “Right”> Text goes here. </P>
Center Center-aligns the text <P Align = “Center”> Text goes here. </P>
Justify Aligns text evenly between margins <P Align = “Justify”> Text goes here. </P>
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.
Orange Education Pvt Ltd <BR> 9, Daryaganj <BR> Delhi <BR> 110002
Output of the above code:
Introduction to HTML 161

