+ 1
which element is called parent element
use of <inherit>
3 Respuestas
+ 1
<div>
<ul>
<li></li>
</ul>
</div>
<div> is the parent of <ul> (<ul> is the child of <div>).
<ul> is the parent of <li> (<li> is the child of <ul>).
0
Let us think we have written a paragraph and it also includes some bold ,italic,color words .
And when you try to set the font family style/size etc. will be automatically inherited by elements inside that paragraph.
- 1
更高一级的就是父标签