How to change hover color using inline code?

The original question was “How to write hover color using inline CSS?”
But this is not possible with inline css but possible with inline javascript.

Demo: Hover the link below

WordPress Maintenance Service

Here is the code:

<a href="http://shaplakanon.com/wpsupport"
   onMouseOver="this.style.color='green'"
   onMouseOut="this.style.color='black'" >WordPress Maintenance Service</a>

Explanation:

onMouseOver executes when you hover the link.

onMouseOut executes when you hover the link and remove cursor.

Leave a Reply

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