<!DOCTYPE html>
<html>
<head>
<title>Learning jQuery</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
</head>
<body>
<button>Start</button>
<h1>This is a heading</h1>
<p>This is a paragraph with some sample text.</p>
</body>
</html>
/* CSS */
$(document).ready(function(){
$("button").click(function(){
$("h1, p").slideToggle("slow", function(){
// Code to be executed
// once effect is complete
alert("Completed Successfully.");
});
});
});