title: Does jQuery can use an end tag as a selector?
body: <p>I am pretty new in jQuery. I cam across this jQuery code that uses <code>&lt;div /&gt;</code> as a selector:</p>
  
  <pre><code>$("&lt;div /&gt;").html(someString).text();
  </code></pre>
  
  <p>First of all, I would like to know if it is a legitimate tag to use, since <code>div</code> has an end tag: <code>&lt;/div&gt;</code>.</p>
  
  <p>But my main question - does jQuery can use an end tag as a selector and what would be the result of such code?</p>
  
  <p>What will do such code? I did some research, and <a href="https://stackoverflow.com/questions/14653978/jquery-body-tag-possible]">here</a>, <a href="https://stackoverflow.com/users/229044/meagar">meagar</a> say:</p>
  
  <blockquote>
    <p>There is no such thing as a "closing tag" in the DOM. Tags, closing or otherwise, are a component of your markup, the DOM has only elements.</p>
  </blockquote>
  
  <p>but does jQuery treat an end tag as reference to a DOM element like it treats an opening tag?</p>
  
  <p>Thank you very much.</p>