title: html2canvas is not defined
body: <p>I'm developing my project using angularjs and php and need to save a certificate which will be generated at the end, Certificate with it's contents is created dynamically but cannot do <code>right click-&gt;save as</code> since it is not an image, 
  So I used canvas for this, but it doesn't seem to help.</p>
  
  <p>I included this in head tag of my HTML file</p>
  
  <pre><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.5.0-alpha1/html2canvas.js"&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>But still it says "html2canvas is not defined"</p>
  
  <p><strong>MY HTML CODE:</strong></p>
  
  <pre><code>&lt;div class="userCertificate" id="html-content-holder"&gt;
      &lt;div class="secondborder"&gt;
          &lt;img src="images/ISRO_Logo.png" height="80px" alt="ISRO_LOGO" style="text-align: left"&gt;
          &lt;div class="content"&gt;
              &lt;h2 style="color:#f47216"&gt;NATIONAL REMOTE SENSING CENTRE&lt;/h2&gt;
              &lt;br&gt;
              &lt;h1&gt;Certificate Of Appreciation&lt;/h1&gt;
              &lt;br&gt;
              &lt;p&gt;This certificate is awarded to &lt;/p&gt;
              &lt;h1&gt;&lt;span class="Name"&gt; {{studentname}} &lt;/span&gt;&lt;/h1&gt;
              &lt;p&gt;from &lt;span class="collegeName"&gt;{{collegeName}}&lt;/span&gt; for succesfully qualifying online quiz exam with score of &lt;span class="collegeName"&gt;{{marks}}&lt;/span&gt; %&lt;/p&gt;
              &lt;p&gt; conducted on 6/06/2019&lt;/p&gt;
          &lt;/div&gt;
          &lt;img src="images/stamp.PNG" height="80px" alt="ISRO_LOGO" style="float: right;margin-top: 80px;margin-right: 30px"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><code>&lt;input type='button' id='but_screenshot' value='Take screenshot' onclick='screenshot();'&gt;</code></p>
  
  <p><strong>My Javascript Code:</strong></p>
  
  <pre><code>function screenshot() {
              html2canvas(document.getElementById('userCertificate')).then(function(canvas) {
                  document.body.appendChild(canvas);
              });
          }
  </code></pre>