:focus {
outline: 0; //Or none
}
:focus {
// Some visual style
}
Name:
<label htmlFor="nameInput">
Name:
</label>
<input id="nameInput"
type="text" />
<div className="button-style"
onClick={onClickHandler}>
Press Me
</div>
<button onClick={onClickHandler}>
Press Me
</button>
<a onClick={onClickHandler}>
Click me
</a>
Navigate somewhere
Defines how to make Web content more accessible to all people.
Specifies how to increase the accessibility of web applications.
Non-semantic
<Navigation /><SideMenu /><MainContent /> <div className="button-style" onClick={handler}> Save selection</div>
Semantic
<MainContent /> <button type="button" onClick={handler}> Save selection </button>
Use TAB, SHIFT + TAB, ENTER and the arrow keys.
Images CC0 - Pixabay