DOM classes

In this chapter you will learn:

  1. Class list for HTML DOM
  2. Classes for grouping element

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.

ElementType
AHTMLAnchorElement
ABBRHTMLElement
ACRONYMHTMLElement
ADDRESSHTMLElement
APPLETHTMLAppletElement
AREAHTMLAreaElement
BHTMLElement
BASEHTMLBaseElement
BASEFONTHTMLBaseFontElement
BDOHTMLElement
BIGHTMLElement
BLOCKQUOTEHTMLQuoteElement
BODYHTMLBodyElement
BRHTMLBRElement
BUTTONHTMLButtonElement
CAPTIONHTMLTableCaptionElement
CENTERHTMLElement
CITEHTMLElement
CODEHTMLElement
COLHTMLTableColElement
COLGROUPHTMLTableColElement
DDHTMLElement
DELHTMLModElement
DFNHTMLElement
DIRHTMLDirectoryElement
DIVHTMLDivElement
DLHTMLDListElement
DTHTMLElement
EMHTMLElement
FIELDSETHTMLFieldSetElement
FONTHTMLFontElement
FORMHTMLFormElement
FRAMEHTMLFrameElement
FRAMESETHTMLFrameSetElement
H1HTMLHeadingElement
H2HTMLHeadingElement
H3HTMLHeadingElement
H4HTMLHeadingElement
H5HTMLHeadingElement
H6HTMLHeadingElement
HEADHTMLHeadElement
HRHTMLHRElement
HTMLHTMLHtmlElement
IHTMLElement
IFRAMEHTMLIFrameElement
IMGHTMLImageElement
INPUTHTMLInputElement
INSHTMLModElement
ISINDEXHTMLIsIndexElement
KBDHTMLElement
LABELHTMLLabelElement
LEGENDHTMLLegendElement
LIHTMLLIElement
LINKHTMLLinkElement
MAPHTMLMapElement
MENUHTMLMenuElement
METAHTMLMetaElement
NOFRAMESHTMLElement
NOSCRIPTHTMLElement
OBJECTHTMLObjectElement
OLHTMLOListElement
OPTGROUPHTMLOptGroupElement
OPTIONHTMLOptionElement
PHTMLParagraphElement
PARAMHTMLParamElement
PREHTMLPreElement
QHTMLQuoteElement
SHTMLElement
SAMPHTMLElement
SCRIPTHTMLScriptElement
SELECTHTMLSelectElement
SMALLHTMLElement
SPANHTMLElement
STRIKEHTMLElement
STRONGHTMLElement
STYLEHTMLStyleElement
SUBHTMLElement
SUPHTMLElement
TABLEHTMLTableElement
TBODYHTMLTableSectionElement
TDHTMLTableCellElement
TEXTAREAHTMLTextAreaElement
TFOOTHTMLTableSectionElement
THHTMLTableCellElement
THEADHTMLTableSectionElement
TITLEHTMLTitleElement
TRHTMLTableRowElement
TTHTMLElement
UHTMLElement
ULHTMLUListElement
VARHTMLElement

Grouping element

Grouping element objects with no additional properties

NameDOM Object
divHTMLDivElement
dlHTMLDListElement
hrHTMLHRElement
pHTMLParagraphElement
preHTMLPreElement
ulHTMLUListElement

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:

  1. List of DOM events
  2. Event properties
Home » Javascript Tutorial » DOM
Document Object Model
Node Type
nodeName and nodeValue
childNodes
parentNode
previousSibling and nextSibling
lastChild and firstChild
appendChild
insertBefore
ownerDocument
removeChild
replaceChild
Text
NodeList Length
DOM classes