Skip to content

Commit 479f72f

Browse files
Update guidance on <hr> styling (mdn#42708)
* Update guidance on <hr> styling * Update index.md Co-authored-by: Chris Mills <chrisdavidmills@gmail.com> * Another small tweak --------- Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
1 parent fbe2cf4 commit 479f72f

File tree

1 file changed

+3
-1
lines changed
  • files/en-us/web/html/reference/elements/hr

1 file changed

+3
-1
lines changed

files/en-us/web/html/reference/elements/hr/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ hr::after {
3737
}
3838
```
3939

40-
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.
40+
Historically, the `<hr>` element has always 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. Therefore, if you wish to draw a horizontal line, you should do so by adding a border to an existing element using CSS.
41+
42+
The `border-*` properties (for example, {{cssxref("border-style")}} and {{cssxref("border-color")}}) allow you to significantly customize a line's appearance, whether you are customizing an `<hr>` element or a border drawn on a different element.
4143

4244
## Attributes
4345

0 commit comments

Comments
 (0)