0
what is the use of inherent tag/command ? or what is mean by " parent elements " ??
text styling
3 Answers
+ 1
<body>
<p>Text</p>
<p>Text</p>
</body>
Suppose you have something like this. the <body> tag is the parent element for both paragraphs, thus if a <p> was to have the value of inherit for one of it's properties, it would use it's parents value, whatever that may be.
Both paragraphs are siblings to eachother, as they both share the same parent. And both of the paragraphs are daughters to the body element.
0
You can write a specific style for a paragraf. If you want to make your paragraf style not so 'specific' but like style of a parent for this paragraf style you symply write this "inherit" attribute. It clear paragraf style and gives it parent features.
- 2
stupid