title: how to give a div tag a unique id using javascript
body: <p>I'm able to make a div tag using the document.createElement('div')</p>
  
  <p>However i do not know how to give it a unique id.  </p>
  
  <p>can anyone help me with this.</p>
  
  <p>I know how to do it using innerHTML however it very cumbersome. (I heard it not a good way of creating a layout.)</p>