Skip to content

Commit a759e99

Browse files
authored
Heading descriptive: Fix some of the examples (#1827)
* Heading descriptive: Fix some of the examples * Update heading-descriptive-b49b2e.md
1 parent 9f6ca37 commit a759e99

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

_rules/heading-descriptive-b49b2e.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Heading marked up with `h1` element with an image that describes the topic or pu
108108
```html
109109
<html lang="en">
110110
<h1>
111-
<img scr="/test-assets/descriptive-heading-b49b2e/opening_hours_icon.png" alt="Opening hours" />
111+
<img src="/test-assets/descriptive-heading-b49b2e/opening_hours_icon.png" alt="Opening hours" />
112112
</h1>
113113
<p>We are open Monday through Friday from 10 to 16</p>
114114
</html>
@@ -136,12 +136,12 @@ Heading marked up with `h1` element that is a single character that describes th
136136

137137
#### Passed Example 6
138138

139-
Heading marked up with `role="heading"` that describes the topic or purpose of the following [palpable content][]. The heading is positioned off screen and is [included in the accessibility tree][].
139+
Heading marked up with `role="heading"` that describes the topic or purpose of the following [palpable content][]. The heading is positioned off screen but is [included in the accessibility tree][].
140140

141141
```html
142142
<html lang="en">
143143
<span role="heading" aria-level="1" style="position: absolute; top: -9999px; left: -9999px;">Opening Hours</span>
144-
<p style="position: absolute; top: -9999px; left: -9999px;">
144+
<p>
145145
We are open Monday through Friday from 10 to 16
146146
</p>
147147
</html>
@@ -201,7 +201,7 @@ Heading marked up with `role="heading"` that does not describe the topic or purp
201201
```html
202202
<html lang="en">
203203
<span role="heading" style="position: absolute; top: -9999px; left: -9999px;">Weather</span>
204-
<p style="position: absolute; top: -9999px; left: -9999px;">
204+
<p>
205205
We are open Monday through Friday from 10 to 16
206206
</p>
207207
</html>

0 commit comments

Comments
 (0)