What is class selector?

What is class selector?

Default Asked on June 3, 2018 in CSS.
Add Comment
1 Answer(s)

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

CSS Syntax:


.class {

css declarations;

}

Example:


.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.