get all elements of a certain type html code example Example: get all a tags javascript document.anchors