DEV Community

Mohamed Idris
Mohamed Idris

Posted on

How to inspect HTML elements that only appear on hover?

  • Click the "Toggle device toolbar" button in the DevTools.
  • In this mode, clicking the element will simulate a hover-like state (as on mobile/tablet), allowing you to inspect elements that normally only appear on hover. ✨

(P.S. At the beginning of the video here, I tried using the built-in hover/active state simulation, but it didn’t work for my case.)

Top comments (0)