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