HTML/CSS Help for the "p" element

The "p" element (for paragraph) is one of the most widely used elements and is found on most web pages. Improper HTML may use "br" and "div" elements where "p" should be used instead.

Attributes for "p"
TypeAttribute List
Event Attributes"onbeforecopy", "onbeforecut", "onbeforepaste", "oncancel", "onclose", "oncopy", "oncut", and "onpaste"
Obsolete Attributes"align"
Global Core Attributes"accesskey", "class", "contenteditable", "contextmenu", "dir", "draggable", "dropzone", "hidden", "id", "lang", "spellcheck", "style", "tabindex", "title", and "translate"
Global Event Attributes"onabort", "onblur", "oncanplay", "oncanplaythrough", "onchange", "onclick", "oncontextmenu", "oncuechange", "ondblclick", "ondrag", "ondragend", "ondragenter", "ondragleave", "ondragover", "ondragstart", "ondrop", "ondurationchange", "onemptied", "onended", "onerror", "onfocus", "oninput", "oninvalid", "onkeydown", "onkeypress", "onkeyup", "onload", "onloadeddata", "onloadedmetadata", "onloadstart", "onmousedown", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "onmousewheel", "onpause", "onplay", "onplaying", "onprogress", "onratechange", "onreset", "onscroll", "onseeked", "onseeking", "onselect", "onshow", "onstalled", "onsubmit", "onsuspend", "ontimeupdate", "onvolumechange", and "onwaiting"
XML Attributes"xml:base", "xml:lang", "xml:space", and "xmlns"
HTML Microdata"itemid", "itemprop", "itemref", "itemscope", and "itemtype"
IE Attributes"align", "hidefocus", "language", "ondeactivate", "onfocusin", "onfocusout", "onhelp", "onmouseenter", "onmouseleave", "onmove", "onmoveend", "onmovestart", "onpropertychange", "onreadystatechange", "onselectstart", and "unselectable"

NOTE: Using proprietary attributes is not recommended. Avoid using them whenever possible.

Recommended Links

Search Engine Links (for more information)

Forum Help

Help us improve this page: Suggest a link or noteReport a problem