title: Why does CSS selector returns an array of elements?
body: <p>I am writing very basic html and wanted to select only one element using css selector. However, the query returns one element in an array. I can access my element by indexing the array with [0] but is there a way to modify the query to return my element only? </p>
  
  <pre><code>&lt;input class='myInput' id='myId'&gt;
  </code></pre>
  
  <p>Css Selector:</p>
  
  <pre><code>'input.myInput'
  </code></pre>
  
  <p>When used in Chrome dev console, I see: </p>
  
  <pre><code>[&lt;input class='myInput' id='myId'&gt;]
  </code></pre>
  
  <p>instead of: </p>
  
  <pre><code>&lt;input class='myInput' id='myId'&gt;
  </code></pre>