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 ...

Get Sams Teach Yourself CSS 24 in Hours 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.