title: Adding a Values into a div created from document.createElement
body: <p>I have a DIV that is created from document.createElement,, I have a few text and a image that needs to be added to this DIV. Could some one suggest me the best way to do it? The image path is given in the image variable. Below is the code that i have already written. contentattachpoint is another DIV that is there in the HTML page which is got by </p>
  
  <pre><code>var contentattachpoint=document.querySelector('.contentattachPoint');
  
  
  var year="Year of Manufacture:"+arr[i].year;
  var power="Engine Power:"+arr[i].power;
  var description="Description:"+arr[i].description;
  var image=arr[i].image;
  var details = document.createElement("div");
  details.setAttribute("id", "details");
  details.className = "details";
  details.value=year+power+description;
  contentattachpoint.appendChild(details)
  </code></pre>
  
  <p>Thanks in advance.</p>