+ 1

What the inherit value do ?

Do we use it everytime with < div>

13th Jul 2020, 1:14 PM
Friha Nadjoua
Friha Nadjoua - avatar
2 Answers
0
As u know HTML tags are like parents and children, when a tag is inside another one, we call it his child. Not only for <div> it is a rule for every HTML tag that exist. Now when a parent has a CSS parameter, the child automatically get the same (like for example if a parent has blue eyes the child automatically will have blue eyes). Unless we change the DNA of the child (means that we overwrite what automatically has with another CSS parameters ).
14th Jul 2020, 9:28 AM
BELHANI Mohamed-Afif
BELHANI Mohamed-Afif - avatar
0
From its name it inherits the properties of its parents.
13th Jul 2020, 10:48 PM
Rawley
Rawley - avatar