title: Creating dynamic divs in a for loop in JavaScript
body: <p>attempting to loop through a div in the DOM and dynamically render it 300 times. Having trouble accessing the HTML within the styled element.
  Code as follows: </p>
  
  <p><a href="https://i.stack.imgur.com/2peDG.png" rel="nofollow noreferrer">Current Render</a></p>
  
  <p>JavaScript File:</p>
  
  <pre><code>var amount = 5;
  for(var i = 0; i &lt; amount; i++){
      var new_div = document.createElement("div");
      new_div.className = "hello";
      document.body.appendChild(new_div).innerHTML;
  
      console.log("This is repeat " + i)
  }
  </code></pre>
  
  <p>HTML File:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="UTF-8" /&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="ie=edge" /&gt;
      &lt;title&gt;Document&lt;/title&gt;
      &lt;link rel="stylesheet" href="style.css" /&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div class="hello"&gt;
        &lt;p&gt;
          Hello World!
        &lt;/p&gt;
      &lt;/div&gt;
      &lt;script src="app.js"&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>CSS Style Sheet: </p>
  
  <pre><code>.hello {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    border-style: outset;
    border-width: 5px;
    border-color: #d36135;
  }
  </code></pre>
  
  <p>I want to be able to render the first div multiple times as it is exactly styled.</p>