CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS .class Selector

CSS .class Selector



The .class selector is used to select elements with a specific class attribute. For select elements with a specific class, we have to write a period (.) character and then followed with the name of the class.




Its syntax is:-
.class {
  css declarations;

Code Explanation

All Tutorials related to CSS Selectors

All Sections related to CSS