<!DOCTYPE html>
<html>
<head>
<script src="http://www.sargonco.com/Uploads/Public/article/webdistut/javascript/jquery-3.2.1.min.js"></script>

<script>
$(document).ready(function(){
    $("#p1").hover(function(){
        alert("You entered p1!");
    },
    function(){
        alert("Bye! You now leave p1!");
    }); 
});
</script>
</head>
<body>

<p id="p1">This is a paragraph.</p>

</body>
</html>

This is a paragraph.