Code:
<div><p></p><h1></h1></div>
div is the parentNode for p and h

p is the firstChild for div and at the same time the previousSibling for h (p and h are on the same nesting level)

h is the nextSibling for p and the lastChild for div

take a look at this scheme