HTMLParagraphElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

HTMLParagraphElement インターフェイスは、(通常の HTMLElement から継承によって利用できるものに加えて) <p> 要素を操作するためのプロパティやメソッドを提供します。

EventTarget Node Element HTMLElement HTMLParagraphElement

インスタンスプロパティ

親である HTMLElement から継承したプロパティもあります。

HTMLParagraphElement.align 非推奨;

文字列で、列挙型の属性で周囲のコンテキストに対する要素の内容の配置を示します。指定可能な値は "left", "right", "justify", "center" です。

インスタンスメソッド

独自のメソッドはありません。親である HTMLElement からメソッドを継承しています。

仕様書

Specification
HTML
# htmlparagraphelement

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
HTMLParagraphElement
align
Deprecated

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Deprecated. Not for use in new websites.

関連情報

  • このインターフェイスを実装している HTML 要素: <p>