Lesson 4

Creating Basic CSS Rules

9781118236505-co04a.eps

9781118236505-co04b.eps

9781118236505-co04c.eps

check.png Put together selectors, properties, and values in the CSS rule syntax.

check.png Decorate your background with a simple color or an image.

check.png You can center your elements and create columns on a web page.

check.png CSS rules can be saved externally, internally, or inline on a web page.

check.png Child elements inherit styles and browsers resolve style conflicts.

lingo.eps

1. Why is including the semicolon at the end of a CSS rule important?

The explanation is here

2. What does a CSS selector do?

Find out here

3. What property do you use to set the color of a web page’s background? ...

Get HTML5 eLearning Kit For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.