javascript element.queryselector code example
Example 1: queryselector
var el = document.querySelector(".myclass");
Example 2: javascript dom query selector
const elt = document.querySelector("#myId p.article > a");
var el = document.querySelector(".myclass");
const elt = document.querySelector("#myId p.article > a");