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

How Inheritance Works

Another key concept is inheritance. Inheritance is the method by which a child element inherits the property values of its parent element, if those property values aren't declared in the child element.

NOTE

A child element is an HTML element that is nested within another element, while a parent element is an element within which another element is nested. In CSS, the term ancestor element is also sometimes used and refers to any element from which an element inherits properties (which could be the parent, grandparent, great grandparent, and so on, of that element).



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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