<div id="main" class="container">
  <h1>People</h1>
  <ul class="people">
    <li>John Doe</li>
    <li>John Doe</li>
    <li>Jim Doe</li>
  </ul>
</div>
var q = $('ul.people li');
console.log(q);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://code.jquery.com/jquery-3.4.1.js