Semantic HTML
Using the right element for the job. A button handles keyboard events, focus, and role for free.
A <button> instead of a clickable <div>.
Using the right element for the job. A button handles keyboard events, focus, and role for free.
A <button> instead of a clickable <div>.
One of 266 cards in flashcards. Browse every card.