Menu Home

getElementsByTagName

osbo.com | JS | getElementsByTagName

getElementsByTagName returns the list of elements whose qualified name is qualifiedName.

Syntax

collection = document.getElementsByTagName(qualifiedName)

Examples

all

first

last

child

Internal

getElementById

getElementsByClassName

getElementsByTagNameNS

External

Web Hypertext Application Technology Working Group (WHATWG)