Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. HTMLHRElement

HTMLHRElement

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⁩.

TheHTMLHRElement interface provides special properties (beyond those of theHTMLElement interface it also has available to it by inheritance) for manipulating<hr> elements.

EventTarget Node Element HTMLElement HTMLHRElement

Instance properties

Inherits properties from its parent,HTMLElement.

HTMLHRElement.alignDeprecated

A string, an enumerated attribute indicating alignment of the rule with respect to the surrounding context.

HTMLHRElement.colorDeprecated

A string representing the name of the color of the rule.

HTMLHRElement.noShadeDeprecated

A boolean value that sets the rule to have no shading.

HTMLHRElement.sizeDeprecated

A string representing the height of the rule.

HTMLHRElement.widthDeprecated

A string representing the width of the rule on the page.

Instance methods

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

Specifications

Specification
HTML
# htmlhrelement

Browser compatibility

See also

  • The HTML element implementing this interface:<hr>

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp