title: Whats the difference between creating a div as a string versus using createElement()?
body: <p>I know there is some functions made available to creating a node div with createElement(), but is there any other differences? performance? usability? etc...</p>
  
  <p><strong>String div</strong></p>
  
  <pre><code>$('body').append("&lt;div&gt;foo&lt;/div&gt;");
  </code></pre>
  
  <p><em>versus</em></p>
  
  <p><strong>Creating a node div</strong></p>
  
  <pre><code>var newDiv = document.createElement("div");
  var divContent = document.createTextNode("foo");
  newDiv.appendChild(divContent);
  $('body').append(newDiv);
  </code></pre>