title: why cant you access first div element of body like document.body.div[0] in html/javascript
body: <p>I can do <code>document.body.childNodes[1]</code> but why not this 'document.body.div[1]'. How document is special?</p>
  
  <p>Sorry if i am missing something.</p>
  
  <p>Following this logic,and document is not special, body should have been only accessible through like this.</p>
  
  <p><code>document.childNodes[1]</code> or so. Assuming div body is second element.</p>
  
  <p>Why does it work like this. </p>
  
  <p>document.body.etc &lt;&lt; i can do this but...</p>
  
  <p>document.body.div &lt;&lt; not this. Instead this...</p>
  
  <p>document.body.childNodes[1] &lt;&lt; Works given div is 2nd element!</p>
  
  <p>document.childNodes[1] &lt;&lt; then why is it not the only way to acces body given its 2nd element thus [1].</p>
  
  <p>document.body.div.p &lt;&lt; i want to do this, by my understanding of html object model it should be possible. </p>