MDN self-hosted library · e01.org

cursor

The cursor attribute specifies the mouse cursor displayed when the mouse pointer is over an element.

no runnable cells svg-attribute upstream source

The cursor attribute specifies the mouse cursor displayed when the mouse pointer is over an element.

[!NOTE] As a presentation attribute, cursor also has a CSS property counterpart: cursor. When both are specified, the CSS property takes priority.

Elements

The following elements can use the cursor attribute:

Usage notes

Categories Presentation attribute
Value [ [ <FuncIRI>, ]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help ]] | inherit
Animatable Yes

Specifications

Browser compatibility

See also

  • CSS cursor property