<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$('h3').hover(function() {
$('h3').css({"color","#OOFFFF"});
});
});
</script>
This is my code, placed at the end of my HTML document, before the end of <body>
. I'm trying to make my h3
tag change its color to a light blue when I hover over it. This isn't working in my HTML:
<h3 class="masthead-brand">sunil singh</h3>
Can anybody tell me what's wrong? I would really appreciate it.