CBSE Class 10 Computer Applications Question 22 of 31

Sample Question Paper — Question 10

Back to all questions
10
Question

Question 19

"CSS comprises of style rules that are interpreted by the browser and then applied to the corresponding elements in your document." Illustrate the use of Property and Value style rules in CSS.

Answer

Property defines how the elements with distinctive styles should look on the web page. For example, Font-family, color, background, border, etc.

Values are assigned to properties. For example, the value of font-family property can have font names like Monotype Corsiva, Times New Roman, Arial,etc.

Consider the following example in which the paragraph is to be displayed in blue color and the font is Arial:

P
{
Font-family: Arial; Color: Blue;
}