CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

Inheritance in CSS




Inheritance is defined as the way in which properties flow through the page. A child element will usually take on the characteristics of the parent element unless otherwise defined. Therefore, we can assume that if a parent has color property and a child does not have it, then the child will inherit that property from its parent.




Its syntax is:-

< style >


color: red;


< /style >


For your Information:-


All child elements in that parent_element will have a default color red.

Code Explanation

All Tutorials related to CSS Basic

All Sections related to CSS