HTML and CSS Reference
In-Depth Information
DOcument Object mODel
The
getElementsByTagName()
method creates an o
b
ject collection based
on a specific
tag nam
e
from the document.
The
getElementB
y
Id()
method
references a docum
e
nt object based
on the value of its
id
attribute
.
The
getElement
s
ByClassName()
method creates an
object collection
based on a specific
class value
from
the document.
All of the obje
c
ts in the
puzzleButton
s
collection
belong to the
puzzles
class.