KnowledgeBoat Logo
|
LoginJOIN NOW

Computer Applications

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

CSS

1 Like

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;
}

Answered By

1 Like


Related Questions