DOM classes
In this chapter you will learn:
Class list
All HTML elements are represented by an instance of HTMLElement
or a more specific subtype.
The following table lists each HTML element and its associated type.
Element | Type |
---|---|
A | HTMLAnchorElement |
ABBR | HTMLElement |
ACRONYM | HTMLElement |
ADDRESS | HTMLElement |
APPLET | HTMLAppletElement |
AREA | HTMLAreaElement |
B | HTMLElement |
BASE | HTMLBaseElement |
BASEFONT | HTMLBaseFontElement |
BDO | HTMLElement |
BIG | HTMLElement |
BLOCKQUOTE | HTMLQuoteElement |
BODY | HTMLBodyElement |
BR | HTMLBRElement |
BUTTON | HTMLButtonElement |
CAPTION | HTMLTableCaptionElement |
CENTER | HTMLElement |
CITE | HTMLElement |
CODE | HTMLElement |
COL | HTMLTableColElement |
COLGROUP | HTMLTableColElement |
DD | HTMLElement |
DEL | HTMLModElement |
DFN | HTMLElement |
DIR | HTMLDirectoryElement |
DIV | HTMLDivElement |
DL | HTMLDListElement |
DT | HTMLElement |
EM | HTMLElement |
FIELDSET | HTMLFieldSetElement |
FONT | HTMLFontElement |
FORM | HTMLFormElement |
FRAME | HTMLFrameElement |
FRAMESET | HTMLFrameSetElement |
H1 | HTMLHeadingElement |
H2 | HTMLHeadingElement |
H3 | HTMLHeadingElement |
H4 | HTMLHeadingElement |
H5 | HTMLHeadingElement |
H6 | HTMLHeadingElement |
HEAD | HTMLHeadElement |
HR | HTMLHRElement |
HTML | HTMLHtmlElement |
I | HTMLElement |
IFRAME | HTMLIFrameElement |
IMG | HTMLImageElement |
INPUT | HTMLInputElement |
INS | HTMLModElement |
ISINDEX | HTMLIsIndexElement |
KBD | HTMLElement |
LABEL | HTMLLabelElement |
LEGEND | HTMLLegendElement |
LI | HTMLLIElement |
LINK | HTMLLinkElement |
MAP | HTMLMapElement |
MENU | HTMLMenuElement |
META | HTMLMetaElement |
NOFRAMES | HTMLElement |
NOSCRIPT | HTMLElement |
OBJECT | HTMLObjectElement |
OL | HTMLOListElement |
OPTGROUP | HTMLOptGroupElement |
OPTION | HTMLOptionElement |
P | HTMLParagraphElement |
PARAM | HTMLParamElement |
PRE | HTMLPreElement |
Q | HTMLQuoteElement |
S | HTMLElement |
SAMP | HTMLElement |
SCRIPT | HTMLScriptElement |
SELECT | HTMLSelectElement |
SMALL | HTMLElement |
SPAN | HTMLElement |
STRIKE | HTMLElement |
STRONG | HTMLElement |
STYLE | HTMLStyleElement |
SUB | HTMLElement |
SUP | HTMLElement |
TABLE | HTMLTableElement |
TBODY | HTMLTableSectionElement |
TD | HTMLTableCellElement |
TEXTAREA | HTMLTextAreaElement |
TFOOT | HTMLTableSectionElement |
TH | HTMLTableCellElement |
THEAD | HTMLTableSectionElement |
TITLE | HTMLTitleElement |
TR | HTMLTableRowElement |
TT | HTMLElement |
U | HTMLElement |
UL | HTMLUListElement |
VAR | HTMLElement |
Grouping element
Grouping element objects with no additional properties
Name | DOM Object |
---|---|
div | HTMLDivElement |
dl | HTMLDListElement |
hr | HTMLHRElement |
p | HTMLParagraphElement |
pre | HTMLPreElement |
ul | HTMLUListElement |
The br
and span
elements are
represented by the HTMLBRElement
and
HTMLSpanElementobjects
, respectively.
These objects do not define any additional methods,
properties, or events beyond those of HTMLElement
.
The following elements are represented solely by HTMLElement:
abbr
, b
, cite
,
code
, dfn
, em
, i
,
u
, kbd
, mark
, rt
, rp
,
ruby
, s
, samp
, small
, strong
,
sub
, sup
, var
, and wbr
.
Next chapter...
What you will learn in the next chapter: