HTMLParagraphElement

HTMLParagraphElement 接口可以提供超过其继承的HTMLElement 对象额外的属性 ,用以操作 <p> 元素.

属性

Inherits properties from its parent, HTMLElement.

HTMLParagraphElement.align This is an obsolete API and is no longer guaranteed to work.
A DOMString 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".

Methods

No specific methods, inherits methods from its parent, HTMLElement.

Specifications

Specification Status Comment
HTML Living Standard
HTMLParagraphElement
Living Standard
HTML5
HTMLParagraphElement
Recommendation The following property is now obsolete: align.
Document Object Model (DOM) Level 2 HTML Specification
HTMLParagraphElement
Obsolete No change from Document Object Model (DOM) Level 1 Specification.
Document Object Model (DOM) Level 1 Specification
HTMLParagraphElement
Obsolete Initial definition.

Browser compatibility

BCD tables only load in the browser

See also

  • The HTML element implementing this interface: <p>.