Chapter 3: Styling with Cascading Style Sheets

In This Chapter

check.png Getting familiar with the CSS syntax

check.png Creating inline, internal, and external CSS

check.png Understanding CSS selectors

9781118404119%20co0303.tif

In earlier chapters of this book, you discover that Cascading Style Sheets are really the way to go when it comes to styling the content on your pages. Yet until now, I haven’t gotten into the nuts and bolts of how to create and apply CSS to your HTML. That’s what this chapter is all about.

To make the task of finding out about styling pages with CSS flow as smoothly as possible, this chapter breaks down CSS into several easily digestible parts. First, you read about the anatomy of the CSS style syntax. Then you discover the difference between inline, internal, and external style sheets and find out how to link an external CSS to an HTML file. After that, you find out the basics of creating custom class styles, redefining default tag styles, setting up ID styles, and using compound CSS styles to style several tags at once. Then, you move on to the advanced concept of pseudo-classes and you find out how to create ...

Get Web Design All-in-One For Dummies, 2nd 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.