title: Is there a css equivalent of onclick from the html element?
body: <p>In javascript, you can easily execute onclick events directly from the html element:</p>
  
  <pre><code>&lt;div onclick="..javascript here.."&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I know that you can change the css styles with the &lt;<strong>style</strong>> tag, but I was wondering if you were able to execute it similarly to the example below:</p>
  
  <pre><code>&lt;div onclick="..css here.."&gt;&lt;/div&gt;
  </code></pre>