get element by tag name check for class code example Example: javascript document object model getElementsByClassName document.getElementsByClassName('test')