javascript get the first element of a certain tag name code example Example: get all a tags javascript document.anchors