O'Reilly logo

Creating Web Pages Simplified by Mike Wooldridge

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required