title: Create an input field using pure Javascript
body: <p>Im trying to create such element only with JS:</p>
  
  <pre><code>&lt;input type="text" value="default"&gt;
  </code></pre>
  
  <p>To do so, I tried this code:</p>
  
  <pre><code>var mi = document.createElement("input");
  mi.type= "text"
  mi.value = "default"
  </code></pre>
  
  <p>But when I run it in Chrome Dev Tools, it only creates this element:</p>
  
  <pre><code>&lt;input type="text"&gt;
  </code></pre>
  
  <p>What am I missing?</p>