What is ruleset?

What is ruleset?

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

A CSS rule-set consists of a selector and it’s declaration block.

In the following example all <p> elements will be center-aligned, with a red text black:

Here <p> is a selector  and  {color: #000;    text-align: center;} is declaration block.

p {

color: #000;

text-align: center;


Default Answered on December 1, 2018.
Add Comment

Your Answer

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