jQuery does not run, but JavaScript does, why?

jQuery does not run, but JavaScript does, why?

Hello, this the current code that I have:

  1. <html>
  2.   <head>
  3.    <title>jQuery Hello World</title>
  4.    <script type="text/javascript" src="jquery-2.1.0.min.js"></script>
  5.   </head>
  6.   <body>
  7.     <script type="text/javascript">
  8.     $(document).ready(function(){
  9.       $("#msgid").html("This is Hello World by JQuery");
  10.     });
  11.     </script>
  12.     <script type="text/javascript">
  13.     document.write("<b>Hello World</b><br><br>");
  14.     </script>
  15.     This is Hello World by HTML
  16.     <div id="msgid">
  17.     </div>
  18.   </body>
  19. </html>
Now, when I run it, this is what I see:


 Hello World

This is Hello World by HTML
 

Why is the jQuery not executing?