Skip to content

Commit 75ea463

Browse files
aduh95addaleax
authored andcommitted
doc: use semantically appropriate tag for lines
The HTML <hr> 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. The HTML Content Division element (<div>) is the generic container for flow content and does not inherently represent anything. The <hr> tag semantically fits better the meaning of the line between the lists. Refs: https://html.spec.whatwg.org/multipage/grouping-content.html#the-hr-element PR-URL: #34660 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent e23f7ee commit 75ea463

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/api/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* [About this documentation](documentation.html)
99
* [Usage and example](synopsis.html)
1010

11-
<div class="line"></div>
11+
<hr class="line"/>
1212

1313
* [Assertion testing](assert.html)
1414
* [Async hooks](async_hooks.html)
@@ -61,6 +61,6 @@
6161
* [Worker threads](worker_threads.html)
6262
* [Zlib](zlib.html)
6363

64-
<div class="line"></div>
64+
<hr class="line"/>
6565

6666
* [Code repository and issue tracker](https://github.com/nodejs/node)

doc/api_assets/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ a code {
524524

525525
#column2 .line {
526526
margin: 0 .5rem;
527-
background-color: #707070;
527+
border-color: #707070;
528528
}
529529

530530
#column2 ul li:last-child {

0 commit comments

Comments
 (0)