Salesqueen Software Solution

Download Free Estimation Now Click Here
Notifications
Clear all

What is the use of a class selector in CSS?

3 Posts
3 Users
0 Reactions
153 Views
Posts: 461
Topic starter
(@dinesha-g)
Reputable Member
Joined: 2 years ago

class selector in CSS

2 Replies
Posts: 52
(@chitravarsha15)
Trusted Member
Joined: 2 years ago

Additionally, you can indicate that a class should only apply to particular HTML elements.

A single HTML element or a collection of HTML elements with the same class attribute value can be chosen using the class selector.

 

 

Reply
Posts: 173
(@princy)
Estimable Member
Joined: 2 years ago

Using a class selector, you can choose only components with that class attribute.Write a period (.) character, followed by the name of the class, to select components that belong to that class.

Reply
Share: