net.htmlparser.jericho
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.
Note that since the Tag
class implements HTMLElementName
, all the constants defined in this interface
can be referred to via the Tag
class.
For example, Tag.BODY
is equivalent to HTMLElementName.BODY
.
HTMLElements
,
Element
Modifier and Type | Field and Description |
---|---|
static String |
A
HTML element A - anchor.
|
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 |
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 |
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 |
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 |
DD
HTML element DD - definition description.
|
static String |
DEL
HTML element DEL - deleted text.
|
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 |
FIELDSET
HTML element FIELDSET - form control group.
|
static String |
FONT
HTML element FONT - local change to font.
|
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 |
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 |
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 |
MAP
HTML element MAP - client-side image map.
|
static String |
MENU
HTML element MENU - menu list.
|
static String |
META
HTML element META - generic metainformation.
|
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 |
P
HTML element P - paragraph.
|
static String |
PARAM
HTML element PARAM - named property value.
|
static String |
PRE
HTML element PRE - preformatted text.
|
static String |
Q
HTML element Q - short inline quotation.
|
static String |
S
HTML element S - strike-through text style.
|
static String |
SAMP
HTML element SAMP - sample program output, scripts, etc..
|
static String |
SCRIPT
HTML element SCRIPT - script statements.
|
static String |
SELECT
HTML element SELECT - option selector.
|
static String |
SMALL
HTML element SMALL - small text style.
|
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 |
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 |
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 |
TITLE
HTML element TITLE - document title.
|
static String |
TR
HTML element TR - table row.
|
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 final String A
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 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 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 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 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 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 FIELDSET
This is a block-level element.
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 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 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 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 MAP
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()
)
static final String META
The end tag of this element is forbidden.
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 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 PRE
This is a block-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 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 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 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 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 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 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 TITLE
The end tag of this element is required.
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.