Monday, July 10, 2017

HSC ICT (Chapter-04, Lecture-06)

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>
<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:
                                            Figure : paragraph line break preformatted text
Share:

0 comments:

Post a Comment

Recent Posts

Unordered List

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Aliquam tincidunt mauris eu risus.
  • Vestibulum auctor dapibus neque.

Pages

Theme Support

Need our help to upload or customize this blogger template? Contact me with details about the theme customization you need.