Merge pull request #984 from him2312/patch-3

Spelling mistake
This commit is contained in:
Ilya Kantor 2019-05-15 23:07:30 +03:00 committed by GitHub
commit c43c55380f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -236,7 +236,7 @@ If the default action was prevented, the value of `event.defaultPrevented` becom
```warn header="Stay semantic, don't abuse"
Technically, by preventing default actions and adding JavaScript we can customize the behavior of any elements. For instance, we can make a link `<a>` work like a button, and a button `<button>` behave as a link (redirect to another URL or so).
But we should generally keep the semantic meaning of HTML elements. For instance, `<a>` should preform navigation, not a button.
But we should generally keep the semantic meaning of HTML elements. For instance, `<a>` should perform navigation, not a button.
Besides being "just a good thing", that makes your HTML better in terms of accessibility.