-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
35 lines (21 loc) · 1019 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: HTMLPreElement
slug: Web/API/HTMLPreElement
page-type: web-api-interface
browser-compat: api.HTMLPreElement
---
{{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`](/en-US/docs/Web/HTML/Element/pre#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")}}