---
source: crates/biome_js_analyze/tests/spec_tests.rs
expression: invalid.jsx
---
# Input
```jsx
<>
<>>
content
{undefined}
>;
```
# Diagnostics
```
invalid.jsx:2:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
1 │ <>
> 2 │
│ ^^^^^^
3 │
4 │
i All headings on a page should have content that is accessible to screen readers.
```
```
invalid.jsx:3:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
1 │ <>
2 │
> 3 │
│ ^^^^
> 4 │
> 5 │
│ ^^^^^
6 │
7 │
i All headings on a page should have content that is accessible to screen readers.
```
```
invalid.jsx:6:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
4 │
5 │
> 6 │
│ ^^^^^^^^^
7 │
8 │ <>>
i All headings on a page should have content that is accessible to screen readers.
```
```
invalid.jsx:7:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
5 │
6 │
> 7 │
│ ^^^^
> 8 │ <>>
> 9 │
│ ^^^^^
10 │ content
11 │
i All headings on a page should have content that is accessible to screen readers.
```
```
invalid.jsx:10:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
8 │ <>>
9 │
> 10 │ content
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 │
12 │ {undefined}
i All headings on a page should have content that is accessible to screen readers.
```
```
invalid.jsx:11:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
9 │
10 │ content
> 11 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 │ {undefined}
13 │
i All headings on a page should have content that is accessible to screen readers.
```
```
invalid.jsx:12:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
10 │ content
11 │
> 12 │ {undefined}
│ ^^^^^^^^^^^^^^^^^^^^
13 │
14 │
i All headings on a page should have content that is accessible to screen readers.
```
```
invalid.jsx:13:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
11 │
12 │ {undefined}
> 13 │
│ ^^^^^^^^^^^^^^^
14 │
15 │
i All headings on a page should have content that is accessible to screen readers.
```
```
invalid.jsx:14:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
12 │ {undefined}
13 │
> 14 │
│ ^^^^^^^^^^^^^^^^^^^^
15 │
16 │
i All headings on a page should have content that is accessible to screen readers.
```
```
invalid.jsx:15:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
13 │
14 │
> 15 │
│ ^^^^^^^^^^^^^^^^^^^^^^
16 │
17 │
i All headings on a page should have content that is accessible to screen readers.
```
```
invalid.jsx:16:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
14 │
15 │
> 16 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 │
18 │ >;
i All headings on a page should have content that is accessible to screen readers.
```
```
invalid.jsx:17:2 lint/a11y/useHeadingContent ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide screen reader accessible content when using heading elements.
15 │
16 │
> 17 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 │ >;
19 │
i All headings on a page should have content that is accessible to screen readers.
```