HTML.Element


HTML documents are made up of a tree-like hierarchy of nodes, called Elements. There are a multiple of element types, modeled as objects with attributes, some deriving from others, and inheriting their properties.

Elements have attributes, and potentially, child elements. The types of attributes available differs for each element type, but all elements can be specified with one or more of the Global HTML attributes:

  • id
  • class - space-seperated list of class names
  • lang
  • dir - element content direction
  • hidden
  • style
  • tabindex
  • title

Javascript and Elements