HTMLElement Interface

All HTML element interfaces derive from this class. Elements that only expose the HTML core attributes are represented by the base HTMLElement interface.



IDL Definition

Interface HTMLElement : Element {

           attribute  DOMString                id;
           attribute  DOMString                title; 
           attribute  DOMString                lang;
           attribute  DOMString                dir;
           attribute  HTMLElement              className;
};

Semantic Requirements

Attributes

  1. The id attribute is the element's identifier.
  2. The title attribute is the element's advisory title.
  3. The lang attribute is the language code defined in RFC 1766.
  4. The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
  5. The className attribute is the class attribute of the element.

If you have comments or suggestions, email me at mbrady@nist.gov