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

4.6. CSS2 Selectors

The CSS2 specification came with a number of new selectors. These selectors allow Web authors much greater flexibility over how to associate CSS properties to Web elements. Only those wholly new selector types and those relevant to standard HTML are covered in this chapter.

Universal Selector

The universal selector is specified with the standard Windows/UNIX “wildcard” character, which is an asterisk (“*”). It allows the Web author to select all cases of a certain selector in a Web document. When an “*” is added in front of a given selector, it formats all of the instances for that selector (without the “*”) throughout the document, so that *[lang="en"] is equivalent to [LANG="EN"] wherever it appears in a Web page.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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