Leakbali
w3 Tutorial, Web Tutorial
Switch to English Bahasa Indonesia 
Register   Login

HTML - Paragraph


HTML documents are divided into paragraphs. Paragraphs are defined with the <p> tag.
Example:
<p>This is a paragraph</p>
<p>This is another paragraph</p> 
Note: Browsers automatically add an empty line before and after a paragraph.
Most browsers will display HTML correctly even if you forget the end tag:
Example:
<p>This is a paragraph
<p>This is another paragraph
The example above will work in most browsers, but don't rely on it. Forgetting the end tag can produce unexpected results or errors.

Note: Future version of HTML will not allow you to skip end tags.
Use the <br /> tag if you want a line break (a new line) without starting a new paragraph:
Example:
<p>This is<br /> a para<br />graph with line breaks</p>
The <br /> element is an empty HTML element. It has no end tag.
In XHTML, XML, and future versions of HTML, HTML elements with no end tag (closing tag) are not allowed.

Even if <br> works in all browsers, writing <br /> instead is more future proof.
Leakbali.com tag reference contains additional information about HTML elements and their attributes.
TagDescription
<p>Define a paragraph
<br />Insert a single Line Break

References

About Us

Home
About Us
Contact Us
Sitemap

Tools

Google PageRank
Alexa Rank
Keywords Density

Accounts

Register Account
Login
Valid XHTML 1.0 TransitionalValid CSS!
Web Directory


2006 - 2012 © Leakbali.com - Free Web Tutorial, Free Web Articles, Web Sharing, Source Codes, Web References