Page 71 - CA 165 ver 1.0 Class 10
P. 71
<P> TAG
Paragraph tag is used to begin a paragraph in a web page. When the browser encounters this tag, the
text moves into a new line skipping one line from the previous line. The ‘Paragraph’ tag <P> contains the
data and the text level elements which has to be displayed. It has an optional end tag </P> which may be
omitted. Syntax to us the <P> tag is as follows:
<P> Paragraph Content </P>
For example:
ORANGE EDUCATION <P> A Complete Reference Book for Students</P>
This tag is required when paragraphs of textual matter (newspaper articles, stories, etc.) are needed to be
separated. If this tag is not used then, the complete text matter in the document is displayed continously
as one part.
ALIGN Attribute
ALIGN attribute is used for horizontal alignment. The values that are used with this attribute are LEFT,
RIGHT or CENTER. Syntax to use ALIGN attribute of the <P> tag is as follows:
<P ALIGN = “RIGHT” > Paragraph Content which appears here.</P>
<HTML>
<HEAD>
<TITLE> Using Pragraph Tags </TITLE>
</HEAD>
<BODY BGCOLOR =“Green” TEXT =“White”>
ORANGE EDUCATION, INDIA
<P> A Complete Reference Book for Students</P>
</BODY>
</HTML>
ORANGE EDUCATION, INDIA
New paragraph begins after A Complete Reference Book for Students
leaving a blank line due to
<P> ...... </P> tag.
<BR> TAG
This is an empty tag. It is used to insert a line break. (A line break is like a typewriter’s carriage return
which takes us back to the left margin in the next line.) This tag is useful when sentences are to be written
in separate lines. Syntax to us the <BR> tag is as follows:
<BR> Content <BR> Content
For example:
ORANGE EDUCATION <BR> INDIA
Introduction to HTML 69

