Saturday, July 9, 2011

Paragraphs

Paragraphs are defined with the <p> tag.

<p>This is a paragraph</p>
<p>This is another paragraph</p>

HTML automatically adds an extra blank line before and after a paragraph.
Line Breaks
The <br> tag is used to end a line, but there is no need to start a new paragraph. The <br> tag forces a line break wherever you place it.

<p>This <br> is a Green<br>Color pen with line breaks</p>
The <br> tag is an empty tag. It has no closing tag.

Output

This
is a Green
Color pen with line breaks


.

No comments:

Post a Comment