Chapter 9. Creating Style Sheets

Looking for an easy way to apply complex styles to your Web page content? This chapter shows you how to use Cascading Style Sheets, or CSS, to assign formatting to your HTML documents and across your Web site. You can create style sheet rules within your Web page or in an external file. You can apply styles from an external file by linking the file to your HTML document. Style sheets can be used to modify the existing styles of HTML tags. You can also create rules known as classes that are independent of HTML tags.

Creating Style Sheets

Understanding Style Sheets 142

Create an Internal Style Sheet 144

Create an External Style Sheet 146

Get Creating Web Pages Simplified 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.