114k views
1 vote
a css is composed of style rules that are understood by a web browser and then applied to the corresponding elements within your document

User Oneca
by
6.7k points

1 Answer

5 votes
A CSS rule is interpreted by the browser and then applied to the corresponding elements in our HTML document. A style rule is composed of three parts:

Selector − is used to “find” (or select) HTML elements based on their element name, id, class, attribute, and more.

Property − is a type of style of the CSS. It could be color, border, background, font, display, text alignment, margins, line spacing, etc.

Value − is assigned to properties. For example, background-color property can have a value of either red or green.
User Hossein
by
8.5k points