title: Lost on HTML5 database connections
body: <p>I am still new in HTML5 and barely starting out. I did HTML for awhile as a module for my school and did a simple "online-shopping" site where I can use JSP files to communicate with my server. However HTML5 is an entirely whole new ball game for me, I hope the Stackoverflow community would be able to help me out with my queries.</p>
  
  <p>So, I did some reading up on websockets however I am really lost in this area. I know what websockets does but I am not entirely sure what it is. For example, in the examples I have read, they only taught me how to create a new websocket object or how to have a connection between this websocket object, and there is supposed to be a url. An example of the code is this,</p>
  
  <pre><code>var Socket = new WebSocket(url, [protocal] );
  </code></pre>
  
  <p>So what exactly do I fill in the "url" area? Do I simply put the IP of my server or do I have to direct it to some php or html file, etc? I have downloaded WAMP and I would like to use apache as my server. Is this possible or do I have to use something like node.js? In a way I have no idea what "websocket" really means. Is a "server" or a feature within the "server" or a package which bridges the connection between the server?</p>
  
  <p>And also are there other alternatives to using something similar to JSP in HTML5 for server data storage?</p>
  
  <p>Thanks in advance for any replies.</p>