APIdia Launch Partner
Top Description Methods
org.w3c.dom.html

public Interface HTMLElement

extends Element
Known Direct Subinterfaces
org.w3c.dom.html.HTMLFontElement, org.w3c.dom.html.HTMLFormElement, org.w3c.dom.html.HTMLFrameElement, org.w3c.dom.html.HTMLFrameSetElement, org.w3c.dom.html.HTMLHeadElement, org.w3c.dom.html.HTMLHeadingElement, org.w3c.dom.html.HTMLHRElement, org.w3c.dom.html.HTMLHtmlElement, org.w3c.dom.html.HTMLIFrameElement, org.w3c.dom.html.HTMLImageElement, org.w3c.dom.html.HTMLInputElement, org.w3c.dom.html.HTMLIsIndexElement, org.w3c.dom.html.HTMLLabelElement, org.w3c.dom.html.HTMLLegendElement, org.w3c.dom.html.HTMLLIElement, org.w3c.dom.html.HTMLMapElement, org.w3c.dom.html.HTMLMenuElement, org.w3c.dom.html.HTMLMetaElement, org.w3c.dom.html.HTMLModElement, org.w3c.dom.html.HTMLObjectElement, org.w3c.dom.html.HTMLOListElement, org.w3c.dom.html.HTMLOptGroupElement, org.w3c.dom.html.HTMLOptionElement, org.w3c.dom.html.HTMLParagraphElement, org.w3c.dom.html.HTMLParamElement, org.w3c.dom.html.HTMLPreElement, org.w3c.dom.html.HTMLQuoteElement, org.w3c.dom.html.HTMLScriptElement, org.w3c.dom.html.HTMLSelectElement, org.w3c.dom.html.HTMLStyleElement, org.w3c.dom.html.HTMLTableCaptionElement, org.w3c.dom.html.HTMLTableCellElement, org.w3c.dom.html.HTMLTableColElement, org.w3c.dom.html.HTMLTableElement, org.w3c.dom.html.HTMLTableRowElement, org.w3c.dom.html.HTMLTableSectionElement, org.w3c.dom.html.HTMLTextAreaElement, org.w3c.dom.html.HTMLTitleElement, org.w3c.dom.html.HTMLUListElement, org.w3c.dom.html.HTMLFieldSetElement, org.w3c.dom.html.HTMLLinkElement, org.w3c.dom.html.HTMLAnchorElement, org.w3c.dom.html.HTMLAppletElement, org.w3c.dom.html.HTMLAreaElement, org.w3c.dom.html.HTMLBaseElement, org.w3c.dom.html.HTMLBaseFontElement, org.w3c.dom.html.HTMLBodyElement, org.w3c.dom.html.HTMLBRElement, org.w3c.dom.html.HTMLButtonElement, org.w3c.dom.html.HTMLDirectoryElement, org.w3c.dom.html.HTMLDivElement, org.w3c.dom.html.HTMLDListElement
Imports
org.w3c.dom.Element

All HTML element interfaces derive from this class. Elements that only expose the HTML core attributes are represented by the base HTMLElement interface. These elements are as follows: HEAD special: SUB, SUP, SPAN, BDO font: TT, I, B, U, S, STRIKE, BIG, SMALL phrase: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ACRONYM, ABBR list: DD, DT NOFRAMES, NOSCRIPT ADDRESS, CENTER The style attribute of an HTML element is accessible through the ElementCSSInlineStyle interface which is defined in the .

See also the Document Object Model (DOM) Level 2 Specification.

Since
1.4, DOM Level 2

Method Summary

Modifier and TypeMethod and Description
public String
getClassName()

The class attribute of the element.

public String
getDir()

Specifies the base direction of directionally neutral text and the directionality of tables.

public String
getId()

The element's identifier.

public String
getLang()

Language code defined in RFC 1766.

public String
getTitle()

The element's advisory title.

public void
setClassName(String className)

public void
public void
public void
public void
Inherited from org.w3c.dom.Element:
getAttributegetAttributeNodegetAttributeNodeNSgetAttributeNSgetElementsByTagNamegetElementsByTagNameNSgetSchemaTypeInfogetTagNamehasAttributehasAttributeNSremoveAttributeremoveAttributeNoderemoveAttributeNSsetAttributesetAttributeNodesetAttributeNodeNSsetAttributeNSsetIdAttributesetIdAttributeNodesetIdAttributeNS

Method Detail

getClassNameback to summary
public String getClassName()

The class attribute of the element. This attribute has been renamed due to conflicts with the "class" keyword exposed by many languages. See the class attribute definition in HTML 4.0.

getDirback to summary
public String getDir()

Specifies the base direction of directionally neutral text and the directionality of tables. See the dir attribute definition in HTML 4.0.

getIdback to summary
public String getId()

The element's identifier. See the id attribute definition in HTML 4.0.

getLangback to summary
public String getLang()

Language code defined in RFC 1766. See the lang attribute definition in HTML 4.0.

getTitleback to summary
public String getTitle()

The element's advisory title. See the title attribute definition in HTML 4.0.

setClassNameback to summary
public void setClassName(String className)
setDirback to summary
public void setDir(String dir)
setIdback to summary
public void setId(String id)
setLangback to summary
public void setLang(String lang)
setTitleback to summary
public void setTitle(String title)