Back to Content

HTMLParagraphElement

files/en-us/web/api/htmlparagraphelement/index.md

latest894 B
Original Source

{{ APIRef("HTML DOM") }}

The HTMLParagraphElement interface provides special properties (beyond those of the regular {{domxref("HTMLElement")}} object interface it inherits) for manipulating {{HTMLElement("p")}} elements.

{{InheritanceDiagram}}

Instance properties

Inherits properties from its parent, {{domxref("HTMLElement")}}.

  • {{domxref("HTMLParagraphElement.align")}} {{deprecated_inline}}
    • : A string representing an enumerated property indicating alignment of the element's contents with respect to the surrounding context. The possible values are "left", "right", "justify", and "center".

Instance methods

No specific methods, inherits methods from its parent, {{domxref("HTMLElement")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • The HTML element implementing this interface: {{ HTMLElement("p") }}.