<p> on it's own works, but it's technicly invalid. For a line break you should use <br> (<br /> for XHTML) For a change of paragraph enclose each paragraph in <p></p> tags.
The reason is that <p> is Paragraph, therefore it should be
HTML Code:
<p>This is a paragraph</p>
<p>This is another paragraph</p>
It's basically to section off the paragraphs. <br /> is a line break.
HTML Code:
This is one line<br />This will be rendered on the next line down
In case you're wondering about the / in the <br /> tag:
Valid XHTML is based on XML. XML requires everything to have an opening tag <tag> and a closing tag </tag>. Some tags can be written shorthand - mainly tags where it wouldn't make sense to have something in it... like <br /> is a line break - it wouldn't make sence to have something 'in' a line break, so you shorten <br></br> to just <br />
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
|