title: How to make dynamic changes in HTML?
body: <p>So I want to add to a variable every time someone clicks a button on my website. I am very new to HMTL so I don't know how to do this. All the examples I've googled just change text into other text and not adding to a variable.</p>
  <p>If someone would like to enlighten me on how to do this I would greatly apricate it.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> 
   function changeIt() {
      document.getElementById('test').innerHTML = "&lt;h2&gt;Congrats&lt;/h2&gt;";
    }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="test"&gt;
     &lt;b&gt; &lt;var&gt; Test &lt;/ var&gt; &lt;/b&gt;
  &lt;/div&gt; 
  
  &lt;button onclick="changeIt()"&gt;Test&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>