CSS Rule Set

By [)ia6l0 iii

A Rule set in css refers to a selector and its declarations.

For e.g the following is a CSS rule. Div is the selector, and the below two lines in the curly brace block are delcarations.

div {
  color: #000;
  padding: 2 em;
}

Related FAQs

A Selector in CSS define or select the html elements that the CSS rules apply for.
Below is a short list of disadvantages of using inline styles
Use the link attribute to link a style sheet to your web page
Below is a short list of the advantages of using Inline Styles
An inline style is applied through the "Style" attribute to the element.
You might use more than one rule through CSS on a single element. In such cases, you might like to define the precedence order on the rules.
CSS Rule Set  (890 Views)