13) Paragraph tag <P>
In HTML document <P> tag indicates paragraphs, starts with the <P> opening tag and end with </P> closing tag, used to add an extra blank line before and after a paragraph.
Example
<HTML>
<HEAD>
<TITLE>
Line break
</TITLE>
</HEAD>
<BODY>
<P> Para-1Welcome to Bangladesh Open University </P>
<P> Para-2 School of Science and Technology </P>
</BODY>
</BODY>
</HTML>
Figure: Paragraph tag
14) Preformatted Text Tag <PRE>
<PRE> tag is used, where it requires total control over spacing and line
breaks such as typing a poem. Browser preserves your space and line
break in the text written inside the tag.
Example: An HTML document paragraphlinbrandpre.html shows the
use of <P>, <BR> and <PRE>.
<HTML>
<HEAD> <TITLE>
Use of Paragraph, Line break and preformatted text Tag
</TITLE> </HEAD>
<BODY>
HTML Tutorial
<P>
HTML stands for Hypertext Markup Language
It is used for creating web page. It is very simple
and easy to learn.
</P>
breaks such as typing a poem. Browser preserves your space and line
break in the text written inside the tag.
Example: An HTML document paragraphlinbrandpre.html shows the
use of <P>, <BR> and <PRE>.
<HTML>
<HEAD> <TITLE>
Use of Paragraph, Line break and preformatted text Tag
</TITLE> </HEAD>
<BODY>
HTML Tutorial
<P>
HTML stands for Hypertext Markup Language
It is used for creating web page. It is very simple
and easy to learn.
</P>
<P>
HTML stands for Hypertext Markup Language <BR>
It is used for creating web page. It is very simple <BR>
and easy to learn<BR>
</P>
<PRE>
HTML stands for Hypertext Markup Language
It is used for creating web page. It is very simple
and easy to learn.
</PRE>
</BODY>
</HTML>
Open your web page and this is what it should look like:
HTML stands for Hypertext Markup Language <BR>
It is used for creating web page. It is very simple <BR>
and easy to learn<BR>
</P>
<PRE>
HTML stands for Hypertext Markup Language
It is used for creating web page. It is very simple
and easy to learn.
</PRE>
</BODY>
</HTML>
Open your web page and this is what it should look like:
Figure : paragraph line break preformatted text
0 comments:
Post a Comment