From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/html/element%2Fhr.html | 176 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 176 insertions(+) create mode 100644 devdocs/html/element%2Fhr.html (limited to 'devdocs/html/element%2Fhr.html') diff --git a/devdocs/html/element%2Fhr.html b/devdocs/html/element%2Fhr.html new file mode 100644 index 00000000..e47ef5c9 --- /dev/null +++ b/devdocs/html/element%2Fhr.html @@ -0,0 +1,176 @@ +

<hr>: The Thematic Break (Horizontal Rule) element

The <hr> HTML element represents a thematic break between paragraph-level elements: for example, a change of scene in a story, or a shift of topic within a section.

+

Try it

+
+

Historically, this has been presented as a horizontal rule or line. While it may still be displayed as a horizontal rule in visual browsers, this element is now defined in semantic terms, rather than presentational terms, so if you wish to draw a horizontal line, you should do so using appropriate CSS.

+
+

Attributes

+
+

This element's attributes include the global attributes.

+align Deprecated Non-standard +

Sets the alignment of the rule on the page. If no value is specified, the default value is left.

+color Deprecated Non-standard +

Sets the color of the rule through color name or hexadecimal value.

+noshade Deprecated Non-standard +

Sets the rule to have no shading.

+size Deprecated Non-standard +

Sets the height, in pixels, of the rule.

+width Deprecated Non-standard +

Sets the length of the rule on the page through a pixel or percentage value.

+
+

Example

+ +

HTML

+
+

html

+
<p>
+  This is the first paragraph of text. This is the first paragraph of text. This
+  is the first paragraph of text. This is the first paragraph of text.
+</p>
+
+<hr />
+
+<p>
+  This is the second paragraph of text. This is the second paragraph of text.
+  This is the second paragraph of text. This is the second paragraph of text.
+</p>
+
+
+

Result

+
+ + +
+

Technical summary

+
Content categories +Flow content.
Permitted content None; it is a void element.
Tag omission It must have start tag, but must not have an end tag.
Permitted parents Any element that accepts flow content.
Implicit ARIA role separator
Permitted ARIA roles +presentation or none +
DOM interface HTMLHRElement
+

Specifications

+
+ + +
Specification
HTML Standard
# the-hr-element
+

Browser compatibility

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on IOSSamsung Internet
hr11215.5≤12.134.4184≤12.111.0
align1121≤6≤12.1≤44.4184≤12.1≤3.21.0
color33121≤62010.14.4.33342010.32.0
noshade1121≤6≤12.1≤44.4184≤12.1≤3.21.0
size1121≤6≤12.1≤44.4184≤12.1≤3.21.0
width1121≤6≤12.1≤44.4184≤12.1≤3.21.0
+

See also

+
+

+ © 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
+ https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr +

+
-- cgit v1.2.3