CSS Rules and Selectors part 2

Type Selectors



The most common and easy to understand selectors are type selectors. This selector targets element types on the page.

For example, to target all the paragraphs on the page:
p {
color: red;
font-size:130%;
}
Try It Yourself

A CSS declaration always ends with a semicolon, and declaration groups are surrounded by curly braces.

Comments

Popular posts from this blog

font-family part 1