- there should be no more than one event assigned to an element (some exceptions may apply)
- create device-independent event handlers
Thing I accomplished
Searched for articles and videos pertaining to proper use of event handlers to optimize accessibility.
What I learned today
As developers, we shouldn’t offer interaction with just one type of device or peripheral. Coding device-independent event handlers will open up the experience to a wider audience of users. We know to make our sites keyboard accessible, but we shouldn’t build just for keyboard users either. Examples of device-independent event handlers:
- onClick (when used with links or form elements)
The examples aforementioned are not unbreakable. Altering default behaviors can present problems.