Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

LESSON 8


8 Using CSS to Style a Site


Site


In the past few lessons, I’ve discussed how to lay out web pages using
Hypertext Markup Language (HTML) tags. In this lesson, I describe how
you can create complex pages using Cascading Style Sheets (CSS).
You’ve already learned about the advantages CSS can provide for format-
ting smaller snippets of text. In this lesson, you’ll learn how to use CSS
to control the appearance of an entire page.
The following topics are covered:
n Creating style sheets and including them in a page
n Linking to external style sheets
n Using selectors to apply styles to elements on a page
n Examining units of measure supported by CSS
n Considering the CSS box model
n Positioning elements using CSS
n Applying styles to tables and the <body> tag
n Using CSS to create multicolumn layouts
Free download pdf