CSS Rules and Selectors part 1


CSS Rules and Selectors
12
1/4


















CSS Syntax
CSS is composed of style rules that the browser interprets and then applies to the corresponding elements in your document.
A style rule has three parts: selector, property, and value.
For example, the headline color can be defined as:
Where:
The selector points to the HTML element you want to style.
The declaration block contains one or more declarations, separated by semicolons.
Each declaration includes a property name and a value, separated by a colon.
Comments
Post a Comment