RE: What is class selector?

What is class selector?

Ria Modak Default Asked on June 3, 2018 in CSS.
Add Comment
1 Answers

In the CSS, a class selector is a name preceded by a full stop (“.”)

CSS Syntax:

.class {

css declarations;



.top {

text-align: center;

padding: 20px

background-color: #ccc;


Default Answered on December 1, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.