HTML PARAGRAPH, BREAK, PRE, DIV TAGS - HTML TUTORIAL 4 STUDENTSBLOG100 - Anna University Multiple Choice Questions

HTML PARAGRAPH, BREAK, PRE, DIV TAGS - HTML TUTORIAL 4 STUDENTSBLOG100

In this tutorial we are going to see about basic text formatting tags.
  • Paragraph Tag
  • Break Tag
  • Pre Formatted Tag
  • Division Tag

Paragraph Tag:
Paragraph Tag must be put at each start and end line of every paragraph. The tag used for paragraphs in HTML is <p>. Suppose if we close the <p> tag in between any sentence, it will shown in browser as new paragraph. That is, each words in between start and end of  <p> tag is considered as one paragraph.

Syntax:
<p> ................ </p>

Break Tag:
Break tags are used in HTML program to display any thing in a next line. If one <br> tag is added,then one blank line will be displayed and if two <br><br> tag is added, then 2 blank lines will be displayed and so on.
If we don't want any break tags in a HTML document, then <nobr> tags can be used.

Syntax:

<br> or <br />

Pre Formatted Tag:
In the name itself it is mentioned that, it will display how ever the text is formatted in HTML document. This tag is used to preserve the white spaces and lines in the text. See clearly in the example,you will understand.

Syntax:
<pre> ................. </pre>

Division Tag:
This division tag is used to make division or sections in HTML document. 

Syntax:
<div> ................. </div>

Example Program:

Output:

Students blog100 is a best website.

It has many programing tutorials


Students blog100 is a 
best website.It has many programing 
tutorials
Hai...i'm eshin, admin of StudentsBlog100 :)

Lesson 3  Previous | Main Page | Next Lesson 5

No comments:

Post a Comment