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. ...