title: Add ID/class to objects from createElement method
body: <p>This <a href="http://www.w3schools.com/jsref/met_document_createelement.asp" rel="noreferrer">w3schools page</a> mentions the HTML DOM createElement() Method. For example, you can create a button by</p>
  
  <blockquote>
    <p>var btn=document.createElement("BUTTON");</p>
  </blockquote>
  
  <p>However, how can I add ID/class to this button? And what else can I do with it?</p>