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

Chapter 2. CSS Basics > Adding CSS to a Web Page

Adding CSS to a Web Page

The main use for CSS is to define style rules for an entire document. To do this, you include your style rules in the head of the document nestled within a style container (Figure 2.5).

Figure 2.5. The general syntax of a CSS style placed in the <head> of an HTML document.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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