+ 2
Since i m learning DOM its very confusing hare that how p become parent of h
5 Answers
+ 4
<p>
<h1> Hello World </h1>
</p>
in this markups the p is parent of h1 element
+ 1
very detail source bro
+ 1
parent here means the tag just before u r closedš same parent implies they r siblings