Hover

In computing, hovering refers to moving the cursor over an interactive element — such as a link, button, or icon — without clicking it. For example, when you hover over a link on a webpage, the cursor may change from an arrow to a hand, and the link may change color to indicate it is clickable.

Web developers can add hover effects using HTML, CSS, or JavaScript.

  • HTML provides a global event attribute onmouseover, which can be added to a link or button.
    <button onmouseover="myFunction()";>Hover over me</button>
  • CSS provides the pseudoclass :hover that defines how an element should look when the pointer is resting over it (for example, changing color or underlining the text).
    a:hover { color:darkblue; text-decoration: underline; }
  • JavaScript provides mouseover and mouseout events that can trigger functions or other code using an "EventListener" method.
    myElement.addEventListener("mouseover", function() { ... }

The concept of hovering extends beyond websites. Many operating systems and desktop applications highlight icons, buttons, or menus when you hover the cursor over them. Some elements show a tooltip when you hover over them for one or two seconds. Hovering feedback makes user interfaces more intuitive by providing extra information between pointing and clicking.

Hovering and Touchscreens

Since hovering requires a cursor, it generally does not apply to touchscreens, where interaction is mostly through taps and gestures. On mobile devices, designers often use alternatives like press-and-hold or visual cues to provide similar feedback.

Updated September 2, 2025 by Per C.

quizTest Your Knowledge

Which of the following best describes computer ethics?

A
It is the way computer technology changes over time.
0%
B
It is the study of how computer technology impacts society.
0%
C
It is a moral code that applies to using computers.
0%
D
It is the goal of making computers easy to use.
0%
Correct! Incorrect!     View the Computer Ethics definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Hover on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation bar directly below the definition.

Our goal to explain computer terminology in a way that is easy to understand. We strive for accuracy and simplicity with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

TechTerms Newsletter

Improve your technical knowledge with our daily or weekly newsletter! Subscribe today and get new terms and quizzes delivered to your inbox.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.