• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 5. Developing a Page Template > Introducing Cascading Style Sheets

Introducing Cascading Style Sheets

Cascading style sheets are collections of style and formatting information that you can apply consistently to multiple elements and across multiple pages. CSS can do much more than apply italics and right-align text. For example, you can assign a colored border to a single table cell in an otherwise borderless table using CSS styles, which is not possible using traditional HTML. You can also control the positioning of block-level elements in a Web page. For example, you can set margins, padding, and so on.

A CSS style rule contains two parts—the selector and the declaration. The selector is the name of the style (such as h2 or p, for level 2 headings and body text paragraphs, respectively), and the declaration defines the style elements changes. The declaration also consists of two parts, the property (such as font-size or background-color), and the property's value (such as 10 points or #000099, to specify a blue color).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint