HTML <p> Element
The <p> element contains a paragraph of text which by default creates space before and after itself.
This space is applied by the browser or the space can be altered using CSS styles, for example, by using the
text-indent property to indent the first line of text. <p> elements cannot contain block level elements
and also cannot be nested - you cannot have a <p> element inside another <p> element.
Example code:
<p>Paragraph one</p> <p>Paragraph two</p>
Result:
Paragraph one
Paragraph two
<p> Attributes
- CORE AND LANGUAGE ATTRIBUTES - class, id, title, style, dir, lang
- EVENT ATTRIBUTES - onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmouseout, onmousemove, onkeydown, onkeyup, onkeypress
HTML 4 Element List
<!--<comment>--><!DOCTYPE><a><abbr><acronym><address><applet><area><b><base><basefont><bdo><big><blockquote><body><br><button><caption><center><cite><code><col><colgroup><dd><del><dfn><dir><div><dl><dt><em><fieldset><font><form><frame><frameset><head><h1> to <h6><hr><html><i><iframe><img><input><ins><isindex><kbd><label><legend><li><link><map><menu><meta><noframes><noscript><object><ol><optgroup><option> <p><param><pre><q><s><samp><script><select><small><span><strike><strong><style><sub><sup><table><tbody><td><textarea><tfoot><th><thead><title><tr><tt><u><ul><var>
