Back to Content

HTMLPreElement

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

latest905 B
Original Source

{{APIRef("HTML DOM")}}

The HTMLPreElement interface exposes specific properties and methods (beyond those of the {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating a block of preformatted text ({{HtmlElement("pre")}}).

{{InheritanceDiagram}}

Instance properties

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

  • {{domxref("HTMLPreElement.width")}} {{deprecated_inline}}
    • : A long value reflecting the obsolete width attribute, containing a fixed-size length for the {{HTMLElement("pre")}} element.

Instance methods

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

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