From http://www.w3schools.com (Copyright Refsnes Data)
The <p> tag defines a paragraph.
The align attribute, which was deprecated in HTML 4.01, is no longer supported in HTML 5.
Tip: You should not use the <p> element when other elements are more appropriate.
Source | Output |
---|---|
<p>This is some text in a very short paragraph</p> | This is some text in a very short paragraph |
Attribute | Value | Description | 4 | 5 |
---|---|---|---|---|
align | left right center justify |
Specifies the alignment of the text within the paragraph. Not supported. Use CSS instead | 4 |
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title |
For a full description, go to Standard Attributes in HTML 5.
onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload |
For a full description, go to Event Attributes in HTML 5.
Simple paragraphs
How paragraph elements are displayed
in the browser.
More paragraphs
Some of the default behaviors of paragraph elements.
Poem problems
Some problems with HTML formatting.
From http://www.w3schools.com (Copyright Refsnes Data)