Tag: child element
-

Traversing Elements in DOM
Get the parent element – get the parent node of an element. Get child elements – get children of an element. Get siblings of an element – get siblings of an element. Get the parent element Syntax let parent = node.parentNode; Example <body> <div class=”demo”> <p class=”par”>This…