| Package | Description | 
|---|---|
| org.w3c.dom | Provides the interfaces for the Document Object Model (DOM). | 
| org.w3c.dom.css | |
| org.w3c.dom.html | |
| org.w3c.dom.ls | 
| Modifier and Type | Method and Description | 
|---|---|
| Element | Document. createElement(String tagName)Creates an element of the type specified. | 
| Element | Document. createElementNS(String namespaceURI,
               String qualifiedName)Creates an element of the given qualified name and namespace URI. | 
| Element | Document. getDocumentElement()This is a convenience attribute that allows direct access to the child
 node that is the document element of the document. | 
| Element | Document. getElementById(String elementId)Returns the  Elementthat has an ID attribute with the
 given value. | 
| Element | Attr. getOwnerElement()The  Elementnode this attribute is attached to ornullif this attribute is not in use. | 
| Modifier and Type | Method and Description | 
|---|---|
| CSSStyleDeclaration | ViewCSS. getComputedStyle(Element elt,
                String pseudoElt)This method is used to get the computed style as it is defined in [CSS2]. | 
| CSSStyleDeclaration | DocumentCSS. getOverrideStyle(Element elt,
                String pseudoElt)This method is used to retrieve the override style declaration for a
 specified element and a specified pseudo-element. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | HTMLAnchorElementThe anchor element. | 
| interface  | HTMLAppletElementAn embedded Java applet. | 
| interface  | HTMLAreaElementClient-side image map area definition. | 
| interface  | HTMLBaseElementDocument base URI. | 
| interface  | HTMLBaseFontElementBase font. | 
| interface  | HTMLBodyElementThe HTML document body. | 
| interface  | HTMLBRElementForce a line break. | 
| interface  | HTMLButtonElementPush button. | 
| interface  | HTMLDirectoryElementDirectory list. | 
| interface  | HTMLDivElementGeneric block container. | 
| interface  | HTMLDListElementDefinition list. | 
| interface  | HTMLElementAll HTML element interfaces derive from this class. | 
| interface  | HTMLFieldSetElementOrganizes form controls into logical groups. | 
| interface  | HTMLFontElementLocal change to font. | 
| interface  | HTMLFormElementThe  FORMelement encompasses behavior similar to a collection
 and an element. | 
| interface  | HTMLFrameElementCreate a frame. | 
| interface  | HTMLFrameSetElementCreate a grid of frames. | 
| interface  | HTMLHeadElementDocument head information. | 
| interface  | HTMLHeadingElementFor the  H1toH6elements. | 
| interface  | HTMLHRElementCreate a horizontal rule. | 
| interface  | HTMLHtmlElementRoot of an HTML document. | 
| interface  | HTMLIFrameElementInline subwindows. | 
| interface  | HTMLImageElementEmbedded image. | 
| interface  | HTMLInputElementForm control. | 
| interface  | HTMLIsIndexElementThis element is used for single-line text input. | 
| interface  | HTMLLabelElementForm field label text. | 
| interface  | HTMLLegendElementProvides a caption for a  FIELDSETgrouping. | 
| interface  | HTMLLIElementList item. | 
| interface  | HTMLLinkElementThe  LINKelement specifies a link to an external resource,
 and defines this document's relationship to that resource (or vice versa). | 
| interface  | HTMLMapElementClient-side image map. | 
| interface  | HTMLMenuElementMenu list. | 
| interface  | HTMLMetaElementThis contains generic meta-information about the document. | 
| interface  | HTMLModElementNotice of modification to part of a document. | 
| interface  | HTMLObjectElementGeneric embedded object. | 
| interface  | HTMLOListElementOrdered list. | 
| interface  | HTMLOptGroupElementGroup options together in logical subdivisions. | 
| interface  | HTMLOptionElementA selectable choice. | 
| interface  | HTMLParagraphElementParagraphs. | 
| interface  | HTMLParamElementParameters fed to the  OBJECTelement. | 
| interface  | HTMLPreElementPreformatted text. | 
| interface  | HTMLQuoteElementFor the  QandBLOCKQUOTEelements. | 
| interface  | HTMLScriptElementScript statements. | 
| interface  | HTMLSelectElementThe select element allows the selection of an option. | 
| interface  | HTMLStyleElementStyle information. | 
| interface  | HTMLTableCaptionElementTable caption See the  CAPTION element definition in HTML 4.0. | 
| interface  | HTMLTableCellElementThe object used to represent the  THandTDelements. | 
| interface  | HTMLTableColElementRegroups the  COLandCOLGROUPelements. | 
| interface  | HTMLTableElementThe create* and delete* methods on the table allow authors to construct
 and modify tables. | 
| interface  | HTMLTableRowElementA row in a table. | 
| interface  | HTMLTableSectionElementThe  THEAD,TFOOT, andTBODYelements. | 
| interface  | HTMLTextAreaElementMulti-line text field. | 
| interface  | HTMLTitleElementThe document title. | 
| interface  | HTMLUListElementUnordered list. | 
| Modifier and Type | Method and Description | 
|---|---|
| short | LSParserFilter. startElement(Element elementArg)The parser will call this method after each  Elementstart
 tag has been scanned, but before the remainder of theElementis processed. | 
 Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
 Copyright © 2005, 2025, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.