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 4. Using CSS with HTML

<feature><title>What You’ll Learn in This Hour:</title>
  • What the different types of HTML are and how to use them with Cascading Style Sheets

  • The three ways to link CSS to styles and when to use each

  • How to create an external style sheet for your entire website

  • How to embed style sheets directly in your HTML

  • How to create CSS rules based on the HTML attributes of class and id

In previous hours, you’ve used Cascading Style Sheets to style your HTML pages by linking in an external CSS file. The true power of CSS and HTML really shines through only when you understand both of these complementary languages, how they relate to each other, and how they can be used effectively.

HTML and CSS blend together well not by coincidence ...

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