title: "onload" in <body> tag of HTML and JavaScript?
body: <p>I want to know if "onload" is attribute of &lt;body&gt; tag of HTML. I saw this code snippet while I was going through a book (for learning Java Script).</p>
  
  <pre><code>&lt;html&gt;
      &lt;body onload="alert('hi')";&gt;
        ...
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I know that &lt;body&gt; tag is part of HTML specification. And for an HTML element we can have attributes. Going by this, does it mean onload is &lt;body&gt;'s attribute? Or is it part of JavaScript? How is this merger possible?</p>
  
  <p>If so, does it also mean when HTML was initially developed, did the creator thought that there might be some event driven stuff to be applied (by some other language?).</p>
  
  <p>Can anyone help me in understanding this? Till this point the book/s i have referred it didn't throw any light on what my doubt is, hence asking this question.</p>