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

Inheritance

One of the chief concepts behind CSS is that CSS properties should be able to take on, or "inherit", the display properties of dominant HTML tags. For example, if you set specific properties for the <BODY> tag, all of the HTML elements that fall under this tag (which includes all displayable Web elements) should take on these same display properties. In other words, the "child" elements (tags such as <P>, <I>, <B> etc.) should take on the display properties set by the "parent" (in this case, <BODY>). In effect, all of the child elements will take on the display properties set to the parent; further changes made to any child element are additive.

Figure 5-1. A Web page displaying grouped properties.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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