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 String
HTML element A - anchor.static final String
HTML element ABBR - abbreviated form (e.g., WWW, HTTP, etc.).static final String
HTML element ACRONYM - acronym.static final String
HTML element ADDRESS - information on author.static final String
HTML element APPLET - Java applet.static final String
HTML element AREA - client-side image map area.static final String
HTML element article - self-contained syndicatable or reusable composition.static final String
HTML element aside - sidebar for tangentially related content.static final String
HTML element audio - audio player.static final String
HTML element B - bold text style.static final String
HTML element BASE - document base URI.static final String
HTML element BASEFONT - base font size.static final String
HTML element bdi - text directionality isolation.static final String
HTML element BDO - I18N BiDi over-ride.static final String
HTML element BIG - large text style.static final String
HTML element BLOCKQUOTE - long quotation.static final String
HTML element BODY - document body.static final String
HTML element BR - forced line break.static final String
HTML element BUTTON - push button.static final String
HTML element canvas - scriptable bitmap canvas.static final String
HTML element CAPTION - table caption.static final String
HTML element CENTER - shorthand for DIV align=center.static final String
HTML element CITE - citation.static final String
HTML element CODE - computer code fragment.static final String
HTML element COL - table column.static final String
HTML element COLGROUP - table column group.static final String
HTML element command - menu command.static final String
HTML element datalist - container for options for combo box control.static final String
HTML element DD - definition description.static final String
HTML element DEL - deleted text.static final String
HTML element details - disclosure control for hiding details.static final String
HTML element DFN - instance definition.static final String
HTML element DIR - directory list.static final String
HTML element DIV - generic language/style container.static final String
HTML element DL - definition list.static final String
HTML element DT - definition term.static final String
HTML element EM - emphasis.static final String
HTML element embed - plugin.static final String
HTML element FIELDSET - form control group.static final String
HTML element figcaption - caption for figure.static final String
HTML element figure - figure with optional caption.static final String
HTML element FONT - local change to font.static final String
HTML element footer - footer for a page or section.static final String
HTML element FORM - interactive form.static final String
HTML element FRAME - subwindow.static final String
HTML element FRAMESET - window subdivision.static final String
HTML element H1 - heading.static final String
HTML element H2 - heading.static final String
HTML element H3 - heading.static final String
HTML element H4 - heading.static final String
HTML element H5 - heading.static final String
HTML element H6 - heading.static final String
HTML element HEAD - document head.static final String
HTML element header - introductory or navigational aids for a page or section.static final String
HTML element hgroup - heading group.static final String
HTML element HR - horizontal rule.static final String
HTML element HTML - document root element.static final String
HTML element I - italic text style.static final String
HTML element IFRAME - inline subwindow.static final String
HTML element IMG - Embedded image.static final String
HTML element INPUT - form control.static final String
HTML element INS - inserted text.static final String
HTML element ISINDEX - single line prompt.static final String
HTML element KBD - text to be entered by the user.static final String
HTML element keygen - cryptographic key-pair generator form control.static final String
HTML element LABEL - form field label text.static final String
HTML element LEGEND - fieldset legend.static final String
HTML element LI - list item.static final String
HTML element LINK - a media-independent link.static final String
HTML element MAP - client-side image map.static final String
HTML element mark - highlight.static final String
HTML element MENU - menu list.static final String
HTML element META - generic metainformation.static final String
HTML element meter - gauge.static final String
HTML element nav - section with navigational links.static final String
HTML element NOFRAMES - alternate content container for non frame-based rendering.static final String
HTML element NOSCRIPT - alternate content container for non script-based rendering.static final String
HTML element OBJECT - generic embedded object.static final String
HTML element OL - ordered list.static final String
HTML element OPTGROUP - option group.static final String
HTML element OPTION - selectable choice.static final String
HTML element output - calculated output value.static final String
HTML element P - paragraph.static final String
HTML element PARAM - named property value.static final String
HTML element PRE - preformatted text.static final String
HTML element progress - progress bar.static final String
HTML element Q - short inline quotation.static final String
HTML element rp - parenthesis for ruby annotation text.static final String
HTML element rt - ruby annotation text.static final String
HTML element ruby - ruby annotation(s).static final String
HTML element S - strike-through text style.static final String
HTML element SAMP - sample program output, scripts, etc..static final String
HTML element SCRIPT - script statements.static final String
HTML element section - generic document or application section.static final String
HTML element SELECT - option selector.static final String
HTML element SMALL - small text style.static final String
HTML element source - media source for video or audio.static final String
HTML element SPAN - generic language/style container.static final String
HTML element STRIKE - strike-through text.static final String
HTML element STRONG - strong emphasis.static final String
HTML element STYLE - style info.static final String
HTML element SUB - subscript.static final String
HTML element summary - caption for details.static final String
HTML element SUP - superscript.static final String
HTML element TABLE - table.static final String
HTML element TBODY - table body.static final String
HTML element TD - table data cell.static final String
HTML element TEXTAREA - multi-line text field.static final String
HTML element TFOOT - table footer.static final String
HTML element TH - table header cell.static final String
HTML element THEAD - table header.static final String
HTML element time - date and/or time.static final String
HTML element TITLE - document title.static final String
HTML element TR - table row.static final String
HTML element TT - teletype or monospaced text style.static final String
HTML element U - underlined text style.static final String
HTML element UL - unordered list.static final String
HTML element VAR - instance of a variable or program argument.static final String
HTML element video - video player.static final String
HTML 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
,HTML
Nonterminating elements: HTML
Note that the
HTML
element 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
,TR
Terminating end tags: COLGROUP
,TABLE
Nonterminating 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
,DT
Terminating end tags: DD
,DL
Nonterminating 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
,DT
Terminating end tags: DL
,DT
Nonterminating 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
,FRAMESET
Terminating end tags: HEAD
,HTML
Nonterminating 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: HTML
Nonterminating elements: HTML
Note that the
HTML
element 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: LI
Terminating end tags: LI
,OL
,UL
Nonterminating 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
,OPTION
Terminating end tags: OPTION
,SELECT
Nonterminating 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
,TH
Terminating end tags: All block-level element names,
BODY
,CAPTION
,DD
,DT
,HTML
,LEGEND
,TD
,TH
,TBODY
,TFOOT
,THEAD
,TR
Nonterminating elements: (none) The definition of this element in the HTML 4.01 specification explicitly states that the
P
element cannot contain block-level elements. Despite this, all of the popular browsers (in at least some modes of operation) allowP
elements to encloseTABLE
elements, 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
,RT
Terminating end tags: RUBY
Nonterminating 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
,RT
Terminating end tags: RUBY
Nonterminating 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
,THEAD
Terminating end tags: TABLE
,TBODY
Nonterminating elements: TABLE
Note that the
TFOOT
andTHEAD
elements are included as terminating start tags, even though the HTML 4.01 specification section 11.2.3 states that they must precede theTBODY
element inside aTABLE
. Most browsers tolerate an incorrect ordering of theTHEAD
,TFOOT
andTBODY
elements, 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
,TR
Terminating end tags: TABLE
,TBODY
,TD
,TFOOT
,THEAD
,TR
Nonterminating 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
,THEAD
Terminating end tags: TABLE
,TFOOT
Nonterminating 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
,TR
Terminating end tags: TABLE
,TBODY
,TFOOT
,TH
,THEAD
,TR
Nonterminating elements: TABLE
- See Also:
-
THEAD
HTML element THEAD - table header.The end tag of this element is optional:
Terminating start tags: TBODY
,TFOOT
,THEAD
Terminating end tags: TABLE
,THEAD
Nonterminating 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
,TR
Terminating end tags: TABLE
,TBODY
,TFOOT
,THEAD
,TR
Nonterminating 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:
-