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

Creating a CSS Document

It's time to start creating your first CSS document. A CSS document is the file where the styles you create are kept. The term CSS can refer to this file or to the actual styles. It can be confusing, but as you get more comfortable with the way everything works, you'll also get used to the lingo of Web design. For the sake of simplicity, we work with the HTML that we create in Book III, Chapter 2 to create a simple design that helps you get your footing as you set off into the Web design wilderness. While the actual styles work as inline, embedded, or external style sheets (which we explain in the preceding section), the examples given here refer to styles that are external.

CSS styles are made up of three parts:

  • Selector: Specifies what the style will affect.

  • Property: Indicates what exactly will be affected (font, color, background, and so on).

  • Value of the property: Indicates how the property will be affected (fonts will be black and bold for instance).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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