Results 1 to 3 of 3
Thread: Break and paragraph tag
-
03-10-2012 11:56 AM #1
Member
Array
- Join Date
- Jun 2011
- Location
- London
- Posts
- 40
Break and paragraph tag
As it is faster, and one less tag that can be left unclosed, I only use <br> and have completely abandoned the use of <p>.
Is there any use for which the <p> gives a tangible advantage over <br>?
Any downsides at all to using <BR> exclusively?
-
06-12-2012 10:34 AM #2
Rookie Member
Array
- Join Date
- Jun 2012
- Posts
- 18
Paragraph Tag:
The HTML <p> tag inserts a paragraph in the document. Paragraphs are block-level elements that constitute a basic structure of a document and are usually rendered by browsers with top and bottom margins. Paragraphs can't contain block-level elements, including other paragraphs.
Paragraphs are defined with the <p> tag.
Example:
<p>This is a paragraph</p>
<p>This is another paragraph</p>
Break Tag:
The Break tag puts a a line break into the html text displayed on your page. This action breaks the text and begins a new line.
The <br> tag inserts a single line break.
The <br> tag is an empty tag which means that it has no end tag.
Example:
A four word line<br/>A four word line<br/>A four word line.
-
07-10-2012 10:44 AM #3
Banned
Array
- Join Date
- Jul 2012
- Posts
- 9
try to use always <br/> to break, its advanced



LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks