Since i m learning DOM its very confusing hare that how p become parent of h | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Since i m learning DOM its very confusing hare that how p become parent of h

13th Dec 2017, 9:38 AM
Ritu raj
Ritu raj - avatar
3 Answers
+ 4
<p> <h1> Hello World </h1> </p> in this markups the p is parent of h1 element
13th Dec 2017, 9:43 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
very detail source bro
21st Dec 2017, 10:49 AM
Nurul Ikhsan Justicia
Nurul Ikhsan Justicia - avatar
+ 1
parent here means the tag just before u r closed😊 same parent implies they r siblings
24th Dec 2017, 9:48 AM
leevansha
leevansha - avatar