title: I'm trying to create a javascript Dom radio button and attribute dynamically
body: <p>I'm trying to create a radio button using javascript. But it doesn't seem to work</p>
  
  <pre><code>function div()
  {
      var newDiv = document.createElement("div");
  
      newDiv.id = "myDiv";
      newDiv.style.width = "200px";
      newDiv.style.height = "100px";
      newDiv.style.background = "red";
      newDiv.style.border = "inset";
      newDiv.style.borderwidth = "20px";
      newDiv.style.borderColor = "blue";
  
      document.body.appendChild(newDiv);
  }
  </code></pre>