Interface HTMLElementName
All of the name strings are in lower case.
The HTMLElements class is closely related to this interface, containing static methods which group these names
by the characteristics of their associated elements.
This interface does not specify any methods, but can be inherited by other classes, or statically imported (Java 5.0), to provide less verbose access to the contained element name static fields.
The field values in this interface can be used as name arguments in named tag searches.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringHTML element A - anchor.static final StringHTML element ABBR - abbreviated form (e.g., WWW, HTTP, etc.).static final StringHTML element ACRONYM - acronym.static final StringHTML element ADDRESS - information on author.static final StringHTML element APPLET - Java applet.static final StringHTML element AREA - client-side image map area.static final StringHTML element article - self-contained syndicatable or reusable composition.static final StringHTML element aside - sidebar for tangentially related content.static final StringHTML element audio - audio player.static final StringHTML element B - bold text style.static final StringHTML element BASE - document base URI.static final StringHTML element BASEFONT - base font size.static final StringHTML element bdi - text directionality isolation.static final StringHTML element BDO - I18N BiDi over-ride.static final StringHTML element BIG - large text style.static final StringHTML element BLOCKQUOTE - long quotation.static final StringHTML element BODY - document body.static final StringHTML element BR - forced line break.static final StringHTML element BUTTON - push button.static final StringHTML element canvas - scriptable bitmap canvas.static final StringHTML element CAPTION - table caption.static final StringHTML element CENTER - shorthand for DIV align=center.static final StringHTML element CITE - citation.static final StringHTML element CODE - computer code fragment.static final StringHTML element COL - table column.static final StringHTML element COLGROUP - table column group.static final StringHTML element command - menu command.static final StringHTML element datalist - container for options for combo box control.static final StringHTML element DD - definition description.static final StringHTML element DEL - deleted text.static final StringHTML element details - disclosure control for hiding details.static final StringHTML element DFN - instance definition.static final StringHTML element DIR - directory list.static final StringHTML element DIV - generic language/style container.static final StringHTML element DL - definition list.static final StringHTML element DT - definition term.static final StringHTML element EM - emphasis.static final StringHTML element embed - plugin.static final StringHTML element FIELDSET - form control group.static final StringHTML element figcaption - caption for figure.static final StringHTML element figure - figure with optional caption.static final StringHTML element FONT - local change to font.static final StringHTML element footer - footer for a page or section.static final StringHTML element FORM - interactive form.static final StringHTML element FRAME - subwindow.static final StringHTML element FRAMESET - window subdivision.static final StringHTML element H1 - heading.static final StringHTML element H2 - heading.static final StringHTML element H3 - heading.static final StringHTML element H4 - heading.static final StringHTML element H5 - heading.static final StringHTML element H6 - heading.static final StringHTML element HEAD - document head.static final StringHTML element header - introductory or navigational aids for a page or section.static final StringHTML element hgroup - heading group.static final StringHTML element HR - horizontal rule.static final StringHTML element HTML - document root element.static final StringHTML element I - italic text style.static final StringHTML element IFRAME - inline subwindow.static final StringHTML element IMG - Embedded image.static final StringHTML element INPUT - form control.static final StringHTML element INS - inserted text.static final StringHTML element ISINDEX - single line prompt.static final StringHTML element KBD - text to be entered by the user.static final StringHTML element keygen - cryptographic key-pair generator form control.static final StringHTML element LABEL - form field label text.static final StringHTML element LEGEND - fieldset legend.static final StringHTML element LI - list item.static final StringHTML element LINK - a media-independent link.static final StringHTML element MAP - client-side image map.static final StringHTML element mark - highlight.static final StringHTML element MENU - menu list.static final StringHTML element META - generic metainformation.static final StringHTML element meter - gauge.static final StringHTML element nav - section with navigational links.static final StringHTML element NOFRAMES - alternate content container for non frame-based rendering.static final StringHTML element NOSCRIPT - alternate content container for non script-based rendering.static final StringHTML element OBJECT - generic embedded object.static final StringHTML element OL - ordered list.static final StringHTML element OPTGROUP - option group.static final StringHTML element OPTION - selectable choice.static final StringHTML element output - calculated output value.static final StringHTML element P - paragraph.static final StringHTML element PARAM - named property value.static final StringHTML element PRE - preformatted text.static final StringHTML element progress - progress bar.static final StringHTML element Q - short inline quotation.static final StringHTML element rp - parenthesis for ruby annotation text.static final StringHTML element rt - ruby annotation text.static final StringHTML element ruby - ruby annotation(s).static final StringHTML element S - strike-through text style.static final StringHTML element SAMP - sample program output, scripts, etc..static final StringHTML element SCRIPT - script statements.static final StringHTML element section - generic document or application section.static final StringHTML element SELECT - option selector.static final StringHTML element SMALL - small text style.static final StringHTML element source - media source for video or audio.static final StringHTML element SPAN - generic language/style container.static final StringHTML element STRIKE - strike-through text.static final StringHTML element STRONG - strong emphasis.static final StringHTML element STYLE - style info.static final StringHTML element SUB - subscript.static final StringHTML element summary - caption for details.static final StringHTML element SUP - superscript.static final StringHTML element TABLE - table.static final StringHTML element TBODY - table body.static final StringHTML element TD - table data cell.static final StringHTML element TEXTAREA - multi-line text field.static final StringHTML element TFOOT - table footer.static final StringHTML element TH - table header cell.static final StringHTML element THEAD - table header.static final StringHTML element time - date and/or time.static final StringHTML element TITLE - document title.static final StringHTML element TR - table row.static final StringHTML element TT - teletype or monospaced text style.static final StringHTML element U - underlined text style.static final StringHTML element UL - unordered list.static final StringHTML element VAR - instance of a variable or program argument.static final StringHTML element video - video player.static final StringHTML element wbr - line breaking opportunity.
-
Field Details
-
A
- See Also:
-
ABBR
HTML element ABBR - abbreviated form (e.g., WWW, HTTP, etc.).This is an inline-level element.
The end tag of this element is required.
- See Also:
-
ACRONYM
HTML element ACRONYM - acronym.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
ADDRESS
HTML element ADDRESS - information on author.This is a block-level element.
The end tag of this element is required.
- See Also:
-
APPLET
HTML element APPLET - Java applet.This is an inline-level element.
The end tag of this element is required.
This element is deprecated in HTML 4.01. (see
HTMLElements.getDeprecatedElementNames())- See Also:
-
AREA
HTML element AREA - client-side image map area.The end tag of this element is forbidden.
- See Also:
-
ARTICLE
HTML element article - self-contained syndicatable or reusable composition.This is a block-level element.
The end tag of this element is required.
- See Also:
-
ASIDE
HTML element aside - sidebar for tangentially related content.This is a block-level element.
The end tag of this element is required.
- See Also:
-
AUDIO
HTML element audio - audio player.The end tag of this element is required.
- See Also:
-
B
HTML element B - bold text style.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
BASE
HTML element BASE - document base URI.The end tag of this element is forbidden.
- See Also:
-
BASEFONT
HTML element BASEFONT - base font size.This is an inline-level element.
The end tag of this element is forbidden.
This element is deprecated in HTML 4.01. (see
HTMLElements.getDeprecatedElementNames())- See Also:
-
BDI
HTML element bdi - text directionality isolation.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
BDO
HTML element BDO - I18N BiDi over-ride.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
BIG
HTML element BIG - large text style.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
BLOCKQUOTE
HTML element BLOCKQUOTE - long quotation.This is a block-level element.
The end tag of this element is required.
- See Also:
-
BODY
HTML element BODY - document body.The start tag of this element is optional.
The end tag of this element is optional:
Terminating start tags: (none) Terminating end tags: BODY,HTMLNonterminating elements: HTMLNote that the
HTMLelement is included as a nonterminating element in case the source contains (illegaly) nested HTML elements.- See Also:
-
BR
HTML element BR - forced line break.This is an inline-level element.
The end tag of this element is forbidden.
- See Also:
-
BUTTON
HTML element BUTTON - push button.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
CANVAS
HTML element canvas - scriptable bitmap canvas.The end tag of this element is required.
- See Also:
-
CAPTION
HTML element CAPTION - table caption.The end tag of this element is required.
- See Also:
-
CENTER
HTML element CENTER - shorthand for DIV align=center.This is a block-level element.
The end tag of this element is required.
This element is deprecated in HTML 4.01. (see
HTMLElements.getDeprecatedElementNames())- See Also:
-
CITE
HTML element CITE - citation.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
CODE
HTML element CODE - computer code fragment.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
COL
HTML element COL - table column.The end tag of this element is forbidden.
- See Also:
-
COLGROUP
HTML element COLGROUP - table column group.The end tag of this element is optional:
Terminating start tags: COLGROUP,TBODY,TFOOT,THEAD,TRTerminating end tags: COLGROUP,TABLENonterminating elements: TABLE- See Also:
-
COMMAND
HTML element command - menu command.The end tag of this element is forbidden.
- See Also:
-
DATALIST
HTML element datalist - container for options for combo box control.The end tag of this element is required.
- See Also:
-
DD
HTML element DD - definition description.The end tag of this element is optional:
Terminating start tags: DD,DTTerminating end tags: DD,DLNonterminating elements: DL- See Also:
-
DEL
HTML element DEL - deleted text.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
DETAILS
HTML element details - disclosure control for hiding details.This is a block-level element.
The end tag of this element is required.
- See Also:
-
DFN
HTML element DFN - instance definition.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
DIR
HTML element DIR - directory list.This is a block-level element.
The end tag of this element is required.
This element is deprecated in HTML 4.01. (see
HTMLElements.getDeprecatedElementNames())- See Also:
-
DIV
HTML element DIV - generic language/style container.The end tag of this element is required.
This is a block-level element.
- See Also:
-
DL
HTML element DL - definition list.The end tag of this element is required.
This is a block-level element.
- See Also:
-
DT
HTML element DT - definition term.The end tag of this element is optional:
Terminating start tags: DD,DTTerminating end tags: DL,DTNonterminating elements: DL- See Also:
-
EM
HTML element EM - emphasis.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
EMBED
HTML element embed - plugin.The end tag of this element is forbidden.
- See Also:
-
FIELDSET
HTML element FIELDSET - form control group.This is a block-level element.
The end tag of this element is required.
- See Also:
-
FIGCAPTION
HTML element figcaption - caption for figure.The end tag of this element is required.
- See Also:
-
FIGURE
HTML element figure - figure with optional caption.The end tag of this element is required.
- See Also:
-
FONT
HTML element FONT - local change to font.This is an inline-level element.
The end tag of this element is required.
This element is deprecated in HTML 4.01. (see
HTMLElements.getDeprecatedElementNames())- See Also:
-
FOOTER
HTML element footer - footer for a page or section.This is a block-level element.
The end tag of this element is required.
- See Also:
-
FORM
HTML element FORM - interactive form.This is a block-level element.
The end tag of this element is required.
- See Also:
-
FRAME
HTML element FRAME - subwindow.The end tag of this element is forbidden.
- See Also:
-
FRAMESET
HTML element FRAMESET - window subdivision.The end tag of this element is required.
- See Also:
-
H1
- See Also:
-
H2
- See Also:
-
H3
- See Also:
-
H4
- See Also:
-
H5
- See Also:
-
H6
- See Also:
-
HEAD
HTML element HEAD - document head.The start tag of this element is optional.
The end tag of this element is optional:
Terminating start tags: BODY,FRAMESETTerminating end tags: HEAD,HTMLNonterminating elements: (none) - See Also:
-
HEADER
HTML element header - introductory or navigational aids for a page or section.This is a block-level element.
The end tag of this element is required.
- See Also:
-
HGROUP
HTML element hgroup - heading group.This is a block-level element.
The end tag of this element is required.
- See Also:
-
HR
HTML element HR - horizontal rule.This is a block-level element.
The end tag of this element is forbidden.
- See Also:
-
HTML
HTML element HTML - document root element.The start tag of this element is optional.
The end tag of this element is optional:
Terminating start tags: (none) Terminating end tags: HTMLNonterminating elements: HTMLNote that the
HTMLelement is included as a nonterminating element in case the source contains (illegaly) nested HTML elements.- See Also:
-
I
HTML element I - italic text style.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
IFRAME
HTML element IFRAME - inline subwindow.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
IMG
HTML element IMG - Embedded image.This is an inline-level element.
The end tag of this element is forbidden.
- See Also:
-
INPUT
HTML element INPUT - form control.This is an inline-level element.
The end tag of this element is forbidden.
- See Also:
-
INS
HTML element INS - inserted text.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
ISINDEX
HTML element ISINDEX - single line prompt.This is a block-level element.
The end tag of this element is forbidden.
This element is deprecated in HTML 4.01. (see
HTMLElements.getDeprecatedElementNames())- See Also:
-
KBD
HTML element KBD - text to be entered by the user.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
KEYGEN
HTML element keygen - cryptographic key-pair generator form control.This is an inline-level element.
The end tag of this element is forbidden.
- See Also:
-
LABEL
HTML element LABEL - form field label text.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
LEGEND
HTML element LEGEND - fieldset legend.The end tag of this element is required.
- See Also:
-
LI
HTML element LI - list item.The end tag of this element is optional:
Terminating start tags: LITerminating end tags: LI,OL,ULNonterminating elements: OL,UL- See Also:
-
LINK
HTML element LINK - a media-independent link.The end tag of this element is forbidden.
- See Also:
-
MAP
HTML element MAP - client-side image map.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
MARK
HTML element mark - highlight.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
MENU
HTML element MENU - menu list.This is a block-level element.
The end tag of this element is required.
This element is deprecated in HTML 4.01. (see
HTMLElements.getDeprecatedElementNames())- See Also:
-
META
HTML element META - generic metainformation.The end tag of this element is forbidden.
- See Also:
-
METER
HTML element meter - gauge.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
NAV
HTML element nav - section with navigational links.This is a block-level element.
The end tag of this element is required.
- See Also:
-
NOFRAMES
HTML element NOFRAMES - alternate content container for non frame-based rendering.This is a block-level element.
The end tag of this element is required.
- See Also:
-
NOSCRIPT
HTML element NOSCRIPT - alternate content container for non script-based rendering.This is a block-level element.
The end tag of this element is required.
- See Also:
-
OBJECT
HTML element OBJECT - generic embedded object.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
OL
HTML element OL - ordered list.This is a block-level element.
The end tag of this element is required.
- See Also:
-
OPTGROUP
HTML element OPTGROUP - option group.The end tag of this element is required.
- See Also:
-
OPTION
HTML element OPTION - selectable choice.The end tag of this element is optional:
Terminating start tags: OPTGROUP,OPTIONTerminating end tags: OPTION,SELECTNonterminating elements: (none) - See Also:
-
OUTPUT
HTML element output - calculated output value.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
P
HTML element P - paragraph.This is a block-level element.
The end tag of this element is optional:
Terminating start tags: All block-level element names,
DD,DT,LI,TD,THTerminating end tags: All block-level element names,
BODY,CAPTION,DD,DT,HTML,LEGEND,TD,TH,TBODY,TFOOT,THEAD,TRNonterminating elements: (none) The definition of this element in the HTML 4.01 specification explicitly states that the
Pelement cannot contain block-level elements. Despite this, all of the popular browsers (in at least some modes of operation) allowPelements to encloseTABLEelements, which are also block-level elements.It is possible to make this parser compatible with this incorrect behaviour by executing the following code:
HTMLElements.getTerminatingStartTagNames(HTMLElementName.P).remove(HTMLElementName.TABLE);HTMLElements.getNonterminatingElementNames(HTMLElementName.P).add(HTMLElementName.TABLE);- See Also:
-
PARAM
HTML element PARAM - named property value.The end tag of this element is forbidden.
- See Also:
-
PRE
HTML element PRE - preformatted text.This is a block-level element.
The end tag of this element is required.
- See Also:
-
PROGRESS
HTML element progress - progress bar.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
Q
HTML element Q - short inline quotation.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
RP
HTML element rp - parenthesis for ruby annotation text.This is an inline-level element.
The end tag of this element is optional:
Terminating start tags: RP,RTTerminating end tags: RUBYNonterminating elements: (none) - See Also:
-
RT
HTML element rt - ruby annotation text.This is an inline-level element.
The end tag of this element is optional:
Terminating start tags: RP,RTTerminating end tags: RUBYNonterminating elements: (none) - See Also:
-
RUBY
HTML element ruby - ruby annotation(s).This is an inline-level element.
The end tag of this element is required.
- See Also:
-
S
HTML element S - strike-through text style.This is an inline-level element.
The end tag of this element is required.
This element is deprecated in HTML 4.01. (see
HTMLElements.getDeprecatedElementNames())- See Also:
-
SAMP
HTML element SAMP - sample program output, scripts, etc..This is an inline-level element.
The end tag of this element is required.
- See Also:
-
SCRIPT
HTML element SCRIPT - script statements.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
SECTION
HTML element section - generic document or application section.This is a block-level element.
The end tag of this element is required.
- See Also:
-
SELECT
HTML element SELECT - option selector.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
SMALL
HTML element SMALL - small text style.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
SOURCE
HTML element source - media source for video or audio.The end tag of this element is forbidden.
- See Also:
-
SPAN
HTML element SPAN - generic language/style container.This is an inline-level element.
- See Also:
-
STRIKE
HTML element STRIKE - strike-through text.This is an inline-level element.
This element is deprecated in HTML 4.01. (see
HTMLElements.getDeprecatedElementNames())- See Also:
-
STRONG
HTML element STRONG - strong emphasis.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
STYLE
HTML element STYLE - style info.The end tag of this element is required.
- See Also:
-
SUB
HTML element SUB - subscript.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
SUMMARY
HTML element summary - caption for details.The end tag of this element is required.
- See Also:
-
SUP
HTML element SUP - superscript.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
TABLE
- See Also:
-
TBODY
HTML element TBODY - table body.The start tag of this element is optional.
The end tag of this element is optional:
Terminating start tags: TBODY,TFOOT,THEADTerminating end tags: TABLE,TBODYNonterminating elements: TABLENote that the
TFOOTandTHEADelements are included as terminating start tags, even though the HTML 4.01 specification section 11.2.3 states that they must precede theTBODYelement inside aTABLE. Most browsers tolerate an incorrect ordering of theTHEAD,TFOOTandTBODYelements, so this parser also recognises the elements in any order.- See Also:
-
TD
HTML element TD - table data cell.The end tag of this element is optional:
Terminating start tags: TBODY,TD,TFOOT,TH,THEAD,TRTerminating end tags: TABLE,TBODY,TD,TFOOT,THEAD,TRNonterminating elements: TABLE- See Also:
-
TEXTAREA
HTML element TEXTAREA - multi-line text field.The end tag of this element is required.
This is an inline-level element.
- See Also:
-
TFOOT
HTML element TFOOT - table footer.The end tag of this element is optional:
Terminating start tags: TBODY,TFOOT,THEADTerminating end tags: TABLE,TFOOTNonterminating elements: TABLE- See Also:
-
TH
HTML element TH - table header cell.The end tag of this element is optional:
Terminating start tags: TBODY,TD,TFOOT,TH,THEAD,TRTerminating end tags: TABLE,TBODY,TFOOT,TH,THEAD,TRNonterminating elements: TABLE- See Also:
-
THEAD
HTML element THEAD - table header.The end tag of this element is optional:
Terminating start tags: TBODY,TFOOT,THEADTerminating end tags: TABLE,THEADNonterminating elements: TABLE- See Also:
-
TIME
HTML element time - date and/or time.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
TITLE
HTML element TITLE - document title.The end tag of this element is required.
- See Also:
-
TR
HTML element TR - table row.The end tag of this element is optional:
Terminating start tags: TBODY,TFOOT,THEAD,TRTerminating end tags: TABLE,TBODY,TFOOT,THEAD,TRNonterminating elements: TABLE- See Also:
-
TT
HTML element TT - teletype or monospaced text style.The end tag of this element is required.
This is an inline-level element.
- See Also:
-
U
HTML element U - underlined text style.This is an inline-level element.
The end tag of this element is required.
This element is deprecated in HTML 4.01. (see
HTMLElements.getDeprecatedElementNames())- See Also:
-
UL
HTML element UL - unordered list.This is a block-level element.
The end tag of this element is required.
- See Also:
-
VAR
HTML element VAR - instance of a variable or program argument.This is an inline-level element.
The end tag of this element is required.
- See Also:
-
VIDEO
HTML element video - video player.The end tag of this element is required.
- See Also:
-
WBR
HTML element wbr - line breaking opportunity.This is an inline-level element.
The end tag of this element is forbidden.
- See Also:
-