<div id="wrap">
  <ul>
    <li>list1</li>
    <li>list2</li>
    <li>list3</li>
  </ul>
  <p>text1</p>
</div>
let parent = document.getElementById('wrap');
console.log(parent.firstElementChild);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.