Open In App

How to set different type of cursors using CSS ?

Last Updated : 05 Aug, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

In this article, we will learn how to set different types of cursors using CSS. The cursor CSS is used to specify the kind of mouse cursor when the mouse pointer is over an element. By using it, we may choose the type of cursor that the user will see. here we use the cursor property.

The cursor property is used to set different types of cursors using CSS. With the help of the cursor property, we can specify the mouse cursor to be displayed while pointing to an element. It takes a value which is the type of cursor.

Syntax:

cursor: value

Example 1: In this example, we are using the above-explained method.

Output:

Example 2: Here is another example of using the cursor property.

Output:


Explore