Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface HTMLElementName
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.
Tag.BODY
is equivalent to HTMLElementName.BODY
.
HTMLElements
, Element
Field Summary | |
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
static String |
|
public static final String A
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.
public static final String ACRONYM
HTML element ACRONYM - acronym. This is an inline-level element. The end tag of this element is required.
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.
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. (seeHTMLElements.getDeprecatedElementNames()
)
public static final String AREA
HTML element AREA - client-side image map area. The end tag of this element is forbidden.
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.
public static final String BASE
HTML element BASE - document base URI. The end tag of this element is forbidden.
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. (seeHTMLElements.getDeprecatedElementNames()
)
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.
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.
public static final String BLOCKQUOTE
HTML element BLOCKQUOTE - long quotation. This is a block-level element. The end tag of this element is required.
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:Note that the
Terminating start tags: (none) Terminating end tags: BODY
,HTML
Nonterminating elements: HTML
HTML
element is included as a nonterminating element in case the source contains (illegaly) nested HTML elements.
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.
public static final String BUTTON
HTML element BUTTON - push button. This is an inline-level element. The end tag of this element is required.
public static final String CAPTION
HTML element CAPTION - table caption. The end tag of this element is required.
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. (seeHTMLElements.getDeprecatedElementNames()
)
public static final String CITE
HTML element CITE - citation. This is an inline-level element. The end tag of this element is required.
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.
public static final String COL
HTML element COL - table column. The end tag of this element is forbidden.
public static final String 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
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
public static final String DEL
HTML element DEL - deleted text. This is an inline-level element. The end tag of this element is required.
public static final String DFN
HTML element DFN - instance definition. This is an inline-level element. The end tag of this element is required.
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. (seeHTMLElements.getDeprecatedElementNames()
)
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.
public static final String DL
HTML element DL - definition list. The end tag of this element is required. This is a block-level element.
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
public static final String EM
HTML element EM - emphasis. This is an inline-level element. The end tag of this element is required.
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.
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. (seeHTMLElements.getDeprecatedElementNames()
)
public static final String FORM
HTML element FORM - interactive form. This is a block-level element. The end tag of this element is required.
public static final String FRAME
HTML element FRAME - subwindow. The end tag of this element is forbidden.
public static final String FRAMESET
HTML element FRAMESET - window subdivision. The end tag of this element is required.
public static final String H1
public static final String H2
public static final String H3
public static final String H4
public static final String H5
public static final String H6
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)
public static final String HR
HTML element HR - horizontal rule. This is a block-level element. The end tag of this element is forbidden.
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:Note that the
Terminating start tags: (none) Terminating end tags: HTML
Nonterminating elements: HTML
HTML
element is included as a nonterminating element in case the source contains (illegaly) nested HTML elements.
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.
public static final String IFRAME
HTML element IFRAME - inline subwindow. This is an inline-level element. The end tag of this element is required.
public static final String IMG
HTML element IMG - Embedded image. This is an inline-level element. The end tag of this element is forbidden.
public static final String INPUT
HTML element INPUT - form control. This is an inline-level element. The end tag of this element is forbidden.
public static final String INS
HTML element INS - inserted text. This is an inline-level element. The end tag of this element is required.
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. (seeHTMLElements.getDeprecatedElementNames()
)
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.
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.
public static final String LEGEND
HTML element LEGEND - fieldset legend. The end tag of this element is required.
public static final String 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
public static final String LINK
HTML element LINK - a media-independent link. The end tag of this element is forbidden.
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.
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. (seeHTMLElements.getDeprecatedElementNames()
)
public static final String META
HTML element META - generic metainformation. The end tag of this element is forbidden.
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.
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.
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.
public static final String OL
HTML element OL - ordered list. This is a block-level element. The end tag of this element is required.
public static final String OPTGROUP
HTML element OPTGROUP - option group. The end tag of this element is required.
public static final String 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)
public static final String P
HTML element P - paragraph. This is a block-level element. The end tag of this element is optional:The definition of this element in the HTML 4.01 specification explicitly states that the
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) 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);
public static final String PARAM
HTML element PARAM - named property value. The end tag of this element is forbidden.
public static final String PRE
HTML element PRE - preformatted text. This is a block-level element. The end tag of this element is required.
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.
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. (seeHTMLElements.getDeprecatedElementNames()
)
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.
public static final String SCRIPT
HTML element SCRIPT - script statements. This is an inline-level element. The end tag of this element is required.
public static final String SELECT
HTML element SELECT - option selector. This is an inline-level element. The end tag of this element is required.
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.
public static final String SPAN
HTML element SPAN - generic language/style container. This is an inline-level element.
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. (seeHTMLElements.getDeprecatedElementNames()
)
public static final String STRONG
HTML element STRONG - strong emphasis. This is an inline-level element. The end tag of this element is required.
public static final String STYLE
HTML element STYLE - style info. The end tag of this element is required.
public static final String SUB
HTML element SUB - subscript. This is an inline-level element. The end tag of this element is required.
public static final String SUP
HTML element SUP - superscript. This is an inline-level element. The end tag of this element is required.
public static final String TABLE
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:Note that the
Terminating start tags: TBODY
,TFOOT
,THEAD
Terminating end tags: TABLE
,TBODY
Nonterminating elements: TABLE
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.
public static final String 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
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.
public static final String 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
public static final String 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
public static final String 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
public static final String TITLE
HTML element TITLE - document title. The end tag of this element is required.
public static final String 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
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.
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. (seeHTMLElements.getDeprecatedElementNames()
)
public static final String UL
HTML element UL - unordered list. This is a block-level element. The end tag of this element is required.
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.