DOM By Tag Name


Example

document.getElementsByTagName('b')

will retrieve

<b>All</b>
<b>of</b>
<b>the b elements.</b>

If no elements with the given tag name exist, an empty collection will be returned.