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