CBSE Class 10 Computer Applications
Question 34 of 37
Cascading Style Sheets (CSS) — Question 14
Back to all questions 14
Question Question 14
What is CSS style rule? How do you define it ?
A CSS rule is a single statement in a style sheet that identifies what should be styled (the selector) and how those styles should be applied (the declaration).
We define a rule by writing the selector tag without angle brackets. The properties and their values are written in the following syntax:
selector { propertyname : value ; propertyname : value ; ...}For example, if we want <H3 tag to have font face Arial and red color then we define the style rule as follows:
h3 { font.family : Arial ; color : red ; }