CSS Cursor
- The CSS
cursor
property is used to change the style of the cursor or pointer when the mouse pointer is hovering over an element on a web page. - It allows web developers to control the visual appearance and behavior of the cursor, enhancing the user experience.
Syntax
selector:hover {
cursor: value;
}
The selector
represents the element on which the cursor
property is applied, while the :hover
pseudo-class specifies that the style should be applied when the mouse pointer hovers over the element. The value
is a CSS keyword or a URL indicating the type of cursor to be displayed.