- 2
What is the difference between descendant selector and child selector.
2 Respuestas
0
Let we have
<main>
<div>
<h1>
</h1></div></main>
If you have access main tag through chid selector you can select div but not h1 .
But through desendent selector you can select all tag inside main .
In simple child select child only
But desendent can select child ,grandchild,supergrand child....