au.id.jericho.lib.html

Interface HTMLElementName

Known Implementing Classes:
Element, EndTag, HTMLElements, StartTag, Tag

public interface HTMLElementName

Contains static fields representing the names of all elements defined in the HTML 4.01 specification.

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.

See Also:
HTMLElements, Element

Field Summary

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.

Field Details

A

public static final String A
HTML element A - anchor.

This is an inline-level element.

The end tag of this element is required.


ABBR

public static final String 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.


ACRONYM

public static final String ACRONYM
HTML element ACRONYM - acronym.

This is an inline-level element.

The end tag of this element is required.


ADDRESS

public static final String ADDRESS
HTML element ADDRESS - information on author.

This is a block-level element.

The end tag of this element is required.


APPLET

public static final String 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())


AREA

public static final String AREA
HTML element AREA - client-side image map area.

The end tag of this element is forbidden.


B

public static final String B
HTML element B - bold text style.

This is an inline-level element.

The end tag of this element is required.


BASE

public static final String BASE
HTML element BASE - document base URI.

The end tag of this element is forbidden.


BASEFONT

public static final String 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())


BDO

public static final String BDO
HTML element BDO - I18N BiDi over-ride.

This is an inline-level element.

The end tag of this element is required.


BIG

public static final String BIG
HTML element BIG - large text style.

This is an inline-level element.

The end tag of this element is required.


BLOCKQUOTE

public static final String BLOCKQUOTE
HTML element BLOCKQUOTE - long quotation.

This is a block-level element.

The end tag of this element is required.


BODY

public static final String 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.


BR

public static final String BR
HTML element BR - forced line break.

This is an inline-level element.

The end tag of this element is forbidden.


BUTTON

public static final String BUTTON
HTML element BUTTON - push button.

This is an inline-level element.

The end tag of this element is required.


CAPTION

public static final String CAPTION
HTML element CAPTION - table caption.

The end tag of this element is required.


CENTER

public static final String 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())


CITE

public static final String CITE
HTML element CITE - citation.

This is an inline-level element.

The end tag of this element is required.


CODE

public static final String CODE
HTML element CODE - computer code fragment.

This is an inline-level element.

The end tag of this element is required.


COL

public static final String COL
HTML element COL - table column.

The end tag of this element is forbidden.


COLGROUP

public static final String COLGROUP

DD

public static final String 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

DEL

public static final String DEL
HTML element DEL - deleted text.

This is an inline-level element.

The end tag of this element is required.


DFN

public static final String DFN
HTML element DFN - instance definition.

This is an inline-level element.

The end tag of this element is required.


DIR

public static final String 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())


DIV

public static final String DIV
HTML element DIV - generic language/style container.

The end tag of this element is required.

This is a block-level element.


DL

public static final String DL
HTML element DL - definition list.

The end tag of this element is required.

This is a block-level element.


DT

public static final String 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

EM

public static final String EM
HTML element EM - emphasis.

This is an inline-level element.

The end tag of this element is required.


FIELDSET

public static final String FIELDSET
HTML element FIELDSET - form control group.

This is a block-level element.

The end tag of this element is required.


FONT

public static final String 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())


FORM

public static final String FORM
HTML element FORM - interactive form.

This is a block-level element.

The end tag of this element is required.


FRAME

public static final String FRAME
HTML element FRAME - subwindow.

The end tag of this element is forbidden.


FRAMESET

public static final String FRAMESET
HTML element FRAMESET - window subdivision.

The end tag of this element is required.


H1

public static final String H1
HTML element H1 - heading.

This is a block-level element.

The end tag of this element is required.


H2

public static final String H2
HTML element H2 - heading.

This is a block-level element.

The end tag of this element is required.


H3

public static final String H3
HTML element H3 - heading.

This is a block-level element.

The end tag of this element is required.


H4

public static final String H4
HTML element H4 - heading.

This is a block-level element.

The end tag of this element is required.


H5

public static final String H5
HTML element H5 - heading.

This is a block-level element.

The end tag of this element is required.


H6

public static final String H6
HTML element H6 - heading.

This is a block-level element.

The end tag of this element is required.


HEAD

public static final String 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)

HR

public static final String HR
HTML element HR - horizontal rule.

This is a block-level element.

The end tag of this element is forbidden.


HTML

public static final String 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.


I

public static final String I
HTML element I - italic text style.

This is an inline-level element.

The end tag of this element is required.


IFRAME

public static final String IFRAME
HTML element IFRAME - inline subwindow.

This is an inline-level element.

The end tag of this element is required.


IMG

public static final String IMG
HTML element IMG - Embedded image.

This is an inline-level element.

The end tag of this element is forbidden.


INPUT

public static final String INPUT
HTML element INPUT - form control.

This is an inline-level element.

The end tag of this element is forbidden.


INS

public static final String INS
HTML element INS - inserted text.

This is an inline-level element.

The end tag of this element is required.


ISINDEX

public static final String 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())


KBD

public static final String 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.


LABEL

public static final String LABEL
HTML element LABEL - form field label text.

This is an inline-level element.

The end tag of this element is required.


LEGEND

public static final String LEGEND
HTML element LEGEND - fieldset legend.

The end tag of this element is required.


LI

public static final String LI

LINK

public static final String LINK
HTML element LINK - a media-independent link.

The end tag of this element is forbidden.


MAP

public static final String MAP
HTML element MAP - client-side image map.

This is an inline-level element.

The end tag of this element is required.


MENU

public static final String 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())


META

public static final String META
HTML element META - generic metainformation.

The end tag of this element is forbidden.


NOFRAMES

public static final String 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.


NOSCRIPT

public static final String 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.


OBJECT

public static final String OBJECT
HTML element OBJECT - generic embedded object.

This is an inline-level element.

The end tag of this element is required.


OL

public static final String OL
HTML element OL - ordered list.

This is a block-level element.

The end tag of this element is required.


OPTGROUP

public static final String OPTGROUP
HTML element OPTGROUP - option group.

The end tag of this element is required.


OPTION

public static final String OPTION

P

public static final String 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) 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);

PARAM

public static final String PARAM
HTML element PARAM - named property value.

The end tag of this element is forbidden.


PRE

public static final String PRE
HTML element PRE - preformatted text.

This is a block-level element.

The end tag of this element is required.


Q

public static final String Q
HTML element Q - short inline quotation.

This is an inline-level element.

The end tag of this element is required.


S

public static final String 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())


SAMP

public static final String SAMP
HTML element SAMP - sample program output, scripts, etc..

This is an inline-level element.

The end tag of this element is required.


SCRIPT

public static final String SCRIPT
HTML element SCRIPT - script statements.

This is an inline-level element.

The end tag of this element is required.


SELECT

public static final String SELECT
HTML element SELECT - option selector.

This is an inline-level element.

The end tag of this element is required.


SMALL

public static final String SMALL
HTML element SMALL - small text style.

This is an inline-level element.

The end tag of this element is required.


SPAN

public static final String SPAN
HTML element SPAN - generic language/style container.

This is an inline-level element.


STRIKE

public static final String STRIKE
HTML element STRIKE - strike-through text.

This is an inline-level element.

This element is deprecated in HTML 4.01. (see HTMLElements.getDeprecatedElementNames())


STRONG

public static final String STRONG
HTML element STRONG - strong emphasis.

This is an inline-level element.

The end tag of this element is required.


STYLE

public static final String STYLE
HTML element STYLE - style info.

The end tag of this element is required.


SUB

public static final String SUB
HTML element SUB - subscript.

This is an inline-level element.

The end tag of this element is required.


SUP

public static final String SUP
HTML element SUP - superscript.

This is an inline-level element.

The end tag of this element is required.


TABLE

public static final String TABLE
HTML element TABLE - table.

This is a block-level element.

The end tag of this element is required.


TBODY

public static final String 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 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.


TD

public static final String TD

TEXTAREA

public static final String TEXTAREA
HTML element TEXTAREA - multi-line text field.

The end tag of this element is required.

This is an inline-level element.


TFOOT

public static final String TFOOT

TH

public static final String TH

THEAD

public static final String THEAD

TITLE

public static final String TITLE
HTML element TITLE - document title.

The end tag of this element is required.


TR

public static final String TR

TT

public static final String TT
HTML element TT - teletype or monospaced text style.

The end tag of this element is required.

This is an inline-level element.


U

public static final String 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())


UL

public static final String UL
HTML element UL - unordered list.

This is a block-level element.

The end tag of this element is required.


VAR

public static final String 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.