title: Is JavaScript as HTML Attribute Bad Practice?
body: <p>Example: <a href="https://stackoverflow.com/a/37289566/710887">https://stackoverflow.com/a/37289566/710887</a></p>
  
  <p>I see this happening more and more often. </p>
  
  <p>I was always taught to keep javascript, css, and html separate (with html linking to the sources/scripts of course).</p>
  
  <p>Is using an Javascript in an HTML attribute (such as <code>onclick, onchange, etc:</code>) bad practice?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;span id="valBox"&gt;25&lt;/span&gt;
  &lt;input type="range" min="5" max="50" step="1" value="25" onchange="valBox.textContent = this.value"&gt;</code></pre>
  </div>
  </div>
  </p>