- All Implemented Interfaces:
Serializable
,Comparable<TagName>
,Constable
Possible tag names per the W3C HTML spec.
Pulled from The W3C spec
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIn HTML, the doctype is the required preamble found at the top of all documents.Used to indicate no tagA special tag, meant for cases where we are scanning through unfamiliar namespaces, like svg or math. -
Field Summary
Modifier and TypeFieldDescriptionfinal boolean
Void elements are disallowed to have closing tags -
Method Summary
-
Enum Constant Details
-
A
-
ABBR
-
ADDRESS
-
AREA
-
ARTICLE
-
ASIDE
-
AUDIO
-
B
-
BASE
-
BDI
-
BDO
-
BLOCKQUOTE
-
BODY
-
BR
-
BUTTON
-
CANVAS
-
CAPTION
-
CITE
-
CODE
-
COL
-
COLGROUP
-
COMMAND
-
DATALIST
-
DD
-
DEL
-
DETAILS
-
DFN
-
DIV
-
DL
-
DT
-
EM
-
EMBED
-
FIELDSET
-
FIGCAPTION
-
FIGURE
-
FOOTER
-
FORM
-
H1
-
H2
-
H3
-
H4
-
H5
-
H6
-
HEAD
-
HEADER
-
HGROUP
-
HR
-
HTML
-
I
-
IFRAME
-
IMG
-
INPUT
-
INS
-
KBD
-
KEYGEN
-
LABEL
-
LEGEND
-
LI
-
LINK
-
MAP
-
MARK
-
MENU
-
META
-
METER
-
NAV
-
NOSCRIPT
-
OBJECT
-
OL
-
OPTGROUP
-
OPTION
-
OUTPUT
-
P
-
PARAM
-
PRE
-
PROGRESS
-
Q
-
RP
-
RT
-
RUBY
-
S
-
SAMP
-
SCRIPT
-
SECTION
-
SELECT
-
SMALL
-
SOURCE
-
SPAN
-
STRONG
-
STYLE
-
SUB
-
SUMMARY
-
SUP
-
TABLE
-
TBODY
-
TD
-
TEMPLATE
-
TEXTAREA
-
TFOOT
-
TH
-
THEAD
-
TIME
-
TITLE
-
TR
-
TRACK
-
U
-
UL
-
VAR
-
VIDEO
-
WBR
-
SVG
-
MATH
-
DOCTYPE
In HTML, the doctype is the required preamble found at the top of all documents. Its sole purpose is to prevent a browser from switching into so-called "quirks mode" when rendering a document; that is, it ensures that the browser makes a best-effort attempt at following the relevant specifications, rather than using a different rendering mode that is incompatible with some specifications. -
UNRECOGNIZED
A special tag, meant for cases where we are scanning through unfamiliar namespaces, like svg or math. -
NULL
Used to indicate no tag
-
-
Field Details
-
isVoidElement
public final boolean isVoidElementVoid elements are disallowed to have closing tags
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
findMatchingTagname
-