O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

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

Creating an External Style Sheet

External style sheets are ideal for giving most or all of the pages on your Web site a consistent look. You can define all your styles in an external style sheet and then tell each page on your site to load the external sheet, thus ensuring that each will have the same settings. Although later you will learn about embedded and inline styles, adding CSS to your page from an external style sheet is a best practice, so I highly recommend you use this method (allowing for occasional exceptions).

To create an external style sheet

1. Create a new text document in your text editor of choice Image.

Use any text editor you like ...

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