8. Working with Style Sheets
In This Chapter
Creating an External Style Sheet
Linking to External Style Sheets
Creating an Embedded Style Sheet
The Cascade and the Order of Styles
Before you start defining your style sheets, it’s important to know how to create and use the files that will contain them. In this chapter, you’ll learn how to create a style sheet file and then how to apply CSS to multiple webpages (including a whole site), a single page, or an individual HTML element. You achieve these via three methods: external style sheets (the preferred choice), embedded style sheets, and inline styles (the least desirable).
You’ll learn how to create the ...
Get HTML and CSS: Visual QuickStart Guide, Eighth Edition 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.