title: How to find out what's the first child tag name?
body: <p>I need to find what the first child of an element is.</p>
  <h3>For example:</h3>
  <pre><code>&lt;div class=&quot;parent&quot;&gt;
      &lt;div class=&quot;child&quot;&gt;&lt;/div&gt;
      &lt;img class=&quot;child&quot; /&gt;
      &lt;div class=&quot;child&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>In this example the FIRST child is a <code>div</code>.</p>
  <h3>Another example:</h3>
  <pre><code>&lt;div class=&quot;parent&quot;&gt;
      &lt;img class=&quot;child&quot; /&gt;
      &lt;img class=&quot;child&quot; /&gt;
      &lt;div class=&quot;child&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>In this example the first child is a <code>img</code>.</p>