title: HTML form and other elements
body: <p>I am new to HTML and still trying to understand some concepts. Here it is one that I do not understand at all. After trying HTML form I noticed that if I have a form with attribute name I can access that form the following way document.<em>attribute_name</em> or document[<em>attribute_name</em>]. However if I try to do the same on a div for instance, it does not work. Can somebody please explain me why is this so.
  Also, I was wondering if it good practice to use a form when using AJAX. Let say that I have some fields  inside a form but I am using ajax and the form never is "posted" as I am using AJAX to change field's contents.</p>
  
  <p>Thanks in advance!</p>