How to make HTML button darken when hovered over?

I’m looking to make a html button darken in colour when hovered over.

The code I’m using is below:

<div style="width: 200px; color: white; background-color: #bf8f42; opacity: 0.8; margin: auto; margin-top: 0px; padding: 20px;">Training</div>

Read more here: How to make HTML button darken when hovered over?

Leave a Reply

Your email address will not be published. Required fields are marked *