Download
jQuery Files needed from the official website
jquery.com/download
Html
hide all the elements in 4 seconds <p>
<html>
<!-- heading -->
<head>
<meta charset="utf-8">
<title>Example</title>
</head>
<!-- page -->
<body>
<!-- connect library jQuery -->
<script src="https://dir.by/example_lib/jquery/jquery-3.3.1.min.js"></script>
<!-- html Elements -->
<p style='color:green; font-size:26px;'>Hello!</p>
<p style='color:orange; font-size:26px;'>World</p>
<!-- the page has opened -->
<script>
$( document ).ready(function()
{
// hiding all the elements p in 4 seconds
$("p").hide(4000);
});
</script>
</body>
</html>