CSS Rules and Selectors part 1

CSS Fundamentals
The Basics
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: selectorproperty, and value

For example, the headline color can be defined as:
h1 { color: orange; }Try It Yourself

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

Popular posts from this blog

font-family part 1