Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Role of CSS :hover Selector
Use the CSS :hover selector to style links on mouse over with CSS. You can try to run the following code to implement the :hover selector −
Example
<!DOCTYPE html>
<html>
<head>
<style>
a:hover {
background-color: orange;
}
</style>
</head>
<body>
<a href = "https://www.qries.com">Qries</a>
<p>Keep the mouse cursor on the above link and see the effect.</p>
</body>
</html> Advertisements
