This is the content of my HTML file:
<!DOCTYPE html>
<!-- The above DOCTYPE declaration tells the browser that this page conforms to HTML 5 standards -->
<head>
<meta http-equiv="author" content="Chris" />
<link href="jquery.css" type="text/css" rel="stylesheet" />
</script>
<script src="js/jquery-3.3.1.min.js">
</script>
<script>
$(document).ready(function() {
$('#message').hide();
});
</script>
</head>
<body>
<p id="message">Hello World!</p>
</body>
</html>
I have a file named jquery.js, which is a minified version of jQuery 3.3.1, and it is saved in the folder js in which my HTML file and CSS file are located. In this document, I am trying to hide the paragraph with the ID of message using the hide() function, but when I open up the file in a Google Chrome browser, the paragraph is still there.
Note: Clearly, I am new to JavaScript and the implementation of a jQuery library.
<script src="jquery-3.3.1.min.js">if your html and jquery file both are in same folder