Chapter 3: Styling with Cascading Style Sheets
In This Chapter
Getting familiar with the CSS syntax
Creating inline, internal, and external CSS
Understanding CSS selectors
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 ...