JavaScript
Using querySelectAll
JQUERY
QuerySelectAll can be used with an element by using the tag name as an argument
contentElement.querySelectorAll('h1');
Or a class: contentElement.querySelectorAll('.className');
QuerySelector will get the first element/first elemet with class name found
It also works well with an id
document.querySelector("#thisSentence")