---
source: crates/biome_js_analyze/tests/spec_tests.rs
expression: area.jsx
---
# Input
```jsx
// invalid
<>
>;
//valid
<>
>;
```
# Diagnostics
```
area.jsx:4:2 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide a text alternative through the alt, aria-label or aria-labelledby attribute
3 │ <>
> 4 │
│ ^^^^^^^^
5 │
6 │
i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page.
```
```
area.jsx:5:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide a text alternative through the alt, aria-label or aria-labelledby attribute
3 │ <>
4 │
> 5 │
│ ^^^^^^^^^^^^
6 │
7 │
i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page.
```
```
area.jsx:6:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide a text alternative through the alt, aria-label or aria-labelledby attribute
4 │
5 │
> 6 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^
7 │
8 │
i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page.
```
```
area.jsx:7:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide a text alternative through the alt, aria-label or aria-labelledby attribute
5 │
6 │
> 7 │
│ ^^^^^^^^^^^^^^^^^^
8 │
9 │
i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page.
```
```
area.jsx:8:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide a text alternative through the alt, aria-label or aria-labelledby attribute
6 │
7 │
> 8 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^
9 │
10 │
i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page.
```
```
area.jsx:9:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide a text alternative through the alt, aria-label or aria-labelledby attribute
7 │
8 │
> 9 │
│ ^^^^^^^^^^^^^^^^^^^^^^
10 │
11 │
i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page.
```
```
area.jsx:10:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide a text alternative through the alt, aria-label or aria-labelledby attribute
8 │
9 │
> 10 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 │
12 │
i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page.
```
```
area.jsx:11:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide a text alternative through the alt, aria-label or aria-labelledby attribute
9 │
10 │
> 11 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 │
13 │ >;
i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page.
```
```
area.jsx:12:3 lint/a11y/useAltText ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Provide a text alternative through the alt, aria-label or aria-labelledby attribute
10 │
11 │
> 12 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 │ >;
14 │
i Meaningful alternative text on elements helps users relying on screen readers to understand content's purpose within a page.
```