Chapter 11. CSS Intro

by Chris Mills

In the last chapter we looked at HTML, the language used on the Web to give your web page content structure and meaning. In this chapter we will look at the basics of another technology: Cascading Style Sheets, or CSS. If HTML is the most widely used important technology on the Web, CSS is the second-most important and widely used.

CSS is a rule-based language that applies styling to your HTML elements—you write rules in CSS that select various groups of elements, and modify properties of those elements such as text color, background color, width, border thickness, font size, etc.

In this chapter we will briefly look at the history of CSS, learn what CSS rules look like, and how to apply them to an HTML document. ...

Get InterACT with Web Standards: A holistic approach to web design 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.