DOM 按标签名称

示例

document.getElementsByTagName('b')

将检索

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

如果不存在具有给定标签名称的元素,则将返回一个空集合。