title: Dynamically creating HTML elements using Javascript?
body: <p>I want to dynamically create some HTML elements (3 html element) and then return this html code as a string in a variable. I don't want to write the HTML code in the following function to some div, but, I want to return it in a var.</p>
  
  <pre><code>function createMyElements(id1,id2,id3){
  
     //create anchor with id1
     //create div with id 2
     //create xyz with id3
  
    //now return the html code of above created just now
  
  }
  </code></pre>
  
  <p>How can I do this?</p>