O'Reilly logo

Web Design All-in-One For Dummies, 2nd Edition by Sue Jenkins

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

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