Page 162 - Digicode_AI_class_7
P. 162
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 Stretches the lines so that each line <P Align = “Justify”> Text goes here. </P>
has an equal width
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.
160 DigiCode AI-VII

