O'Reilly logo

Sams Teach Yourself CSS 24 in Hours by Kynn Bartlett

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 2. Getting Started with CSS

<feature><title>What You’ll Learn in This Hour:</title>
  • What kinds of tools, from text editors to CSS software, you can use to write your style sheets

  • How to create, name, and save a style sheet

  • What the different parts of a CSS rule are and the function of each

  • How and when to add comments to a style sheet

  • Which simple rules you can use to create a basic style sheet

  • How to apply your style sheet to a simple HTML file

  • Which browsers to use to test your style sheet

</feature>

Creating a Style Sheet

A Cascading Style Sheet, as you learned in Hour 1, “Understanding CSS,” is simply a file made up of style rules. CSS files are ordinary text files, just as HTML files are ordinary text files. This means that you can use a ...

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