You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
302 B
23 lines
302 B
5 years ago
|
# scope
|
||
|
|
||
|
The `scope` scope should be used only on `<th>` elements.
|
||
|
|
||
|
#### References
|
||
|
1. [axe-core, scope](https://dequeuniversity.com/rules/axe/1.1/scope)
|
||
|
|
||
|
## Rule details
|
||
|
|
||
|
This rule takes no arguments.
|
||
|
|
||
|
### Succeed
|
||
|
```jsx
|
||
|
<th scope="col" />
|
||
|
<th scope={scope} />
|
||
|
```
|
||
|
|
||
|
### Fail
|
||
|
|
||
|
```jsx
|
||
|
<div scope />
|
||
|
```
|