Interaction

cursor

Learn how to use the CSS cursor property.

CSS cursor

The cursor property sets the cursor for an HTML element.

Syntax

.element {
  cursor: pointer;
}

HTML Context Example

<div class="card">
  This is a styled element.
</div>

<style>
.card {
  cursor: pointer;
}
</style>

Notes

Experiment in the CSS playground to see how this affects layout and styling.