title: document.createElement("LABEL")
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;body&gt;
  
    &lt;p&gt;Click the button to create an Input field.&lt;/p&gt;
  
    &lt;button id="btn" onclick="myFunction()"&gt;Try it&lt;/button&gt;
  
    &lt;script&gt;
      function myFunction() {
        var y = document.createElement("LABEL");
        var yv = prompt("Enter Caption value:", "");
        y.setAttribute("value", yv);
        document.body.appendChild(y);
  
      }
    &lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to create 'lebel' using the above code. it's not working. plz help...</p>