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

Chapter 2. Racehorse Style: CSS Power Po... > Can I See Some Identification Please...

Can I See Some Identification Please?

Just about any HTML element can be given an ID attribute to be used in conjunction with CSS to style that element. ID values must be unique to the document; you can’t use the same ID more than once on a page or you’ll run into trouble. CSS offers what is known as ID selectors that automatically apply the CSS to the ID that matches it. Take this code, for example:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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