queryselector by tag name code example
Example 1: js select element by css selector
// First Element:
document.querySelector('.class')
// Multiple Elements:
document.querySelectorAll('.class')
Example 2: queryselector
document.querySelector(".example");