This may have been asked, but scrolling through about 40+ search results reveals only the jQuery solution. Let\'s say I want to get the first item in an unordered list and a
In some cases, this is enough:
document.querySelector("ul > li:first-child");