CSS · Interaction and accessibility

cursor

Changes the pointer shape. Use it on interactive elements, and not-allowed on disabled controls.

Syntax
cursor: pointer

Example

Try it

More in this group

Colour scheme Filter on focus Forced colours pointer-events Scroll behaviour

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course