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

Chapter 2. CSS Basics > Adding CSS to an HTML Tag

Adding CSS to an HTML Tag

Although CSS means never having to set the appearance of each tag individually, you still have the freedom to set styles within individual tags. This is especially useful for overriding other styles set for the page, if you need to, on a case-by-case basis.

Figure 2.3 shows the general syntax for adding a style directly to an HTML tag, while Figure 2.4 shows the code's results.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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