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

4.4. Contextual Selectors

Another basic CSS concept is that Web browsers should be able to selectively apply CSS formatting rules based upon the context in which a particular CSS property appears on a Web page. We have already seen an example of this in the previous section, as the browsers are able to distinguish which CSS rule should be applied to an id or class property when the name “green” was used.

In a more general sense, contextual selectors are meant to be applied in certain situations or when combinations of HTML tags appear on a Web page.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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