joaooliveira
Crownpeak (Retired)

Do not use "onmouseover" without "onfocus"

Why is this important?

The onmouseover behavior is used to provide a style change on an element when the mouse is hovering over the element. We need to consider that there are users who cannot use a mouse and are using a keyboard instead. In this instance the website should have a corresponding style change onfocus to provide a similar experience for keyboard users.

How can I resolve this issue?

Add onmouseover when you use onfocus

What topics do this checkpoint affect?

  • Accessibility  (WCAG 2.1 Level A, 2.1.1)

Can you explain how this checkpoint works?

This checkpoint examines the entire HTML source code and reports if the onmouseover event is used without an onfocus event

References

Labels (1)

Can't find what you are looking for?

Find Answers

Search our DQM Forum to find answers to questions asked by other DQM users.

Ask a Question

No luck? Ask a question. Our Product and Support teams are monitoring the Forum and typically respond within 48 hours.

Ask a Question