HTML Tag Elements

All of the HTML tag elements have the following useful attributes:

The first two attributes are often specified directly in HTML as in the following example:

      <div id="theDiv" class="theClass">
        …
      </div>
    

Other attributes specified directly in HTML are also accessible as element attributes in JavaScript. Usually the attribute names are the same, but a few, such as class, are modified to avoid JavaScript keywords.

The HTML tag elements have no frequently used methods other than those shared by all elements.