| Enum Constant and Description |
|---|
abbr
Specifies an abbreviated version of the content in a cell
|
accept
Specifies the types of files that can be submitted through a file upload
|
accept_charset
Specifies the character-sets the server can handle for form-data
|
action
Specifies where to send the form-data when a form is submitted
|
align
(input) Specifies the alignment of an image input (only for type="image")
|
allowtransparency
IFrame have this
|
alt
Specifies an alternate text for an image input (only for type="image")
|
axis
Categorizes cells
category_name
|
bgcolor
Deprecated.
|
border
Specifies the width of the borders around a table
border pixels
|
cellpadding
Specifies the space between the cell wall and the cell content
|
cellspacing
Specifies the space between cells
|
char_
Aligns the content in a table row to a character
|
charoff
Sets the number of characters the content will be aligned from the character specified by the char attribute
|
charset
Defines the character encoding of the linked document.
|
checked
Specifies that an input element should be preselected when the page loads (for type="checkbox" or type="radio")
|
clazz
Specifies a classname for an element
|
color
Specifies the font color.
|
cols
Specifies the width of the textarea based on the number of visible character widths.
|
colspan
Sets the number of columns a cell should span
|
dir
Specifies the text direction for the content in an element
rtl, ltr
|
disabled
Specifies that an input element should be disabled when the page loads
|
enctype
Specifies how form-data should be encoded before sending it to a server
application/x-www-form-urlencoded multipart/form-data text/plain |
face
Specifies the font face.
|
frame
Specifies which parts of the outside borders that should be visible
void
above
below
hsides
lhs
rhs
vsides
box
border
|
frameborder
Specifies whether or not to display a border around an iframe
1 or 0
|
headers
Specifies the table headers related to a cell headercells'_id
|
height
Specifies the height of an iframe
pixels
|
href
Specifies the URL of a page or the name of the anchor that the link goes to.
|
hreflang
Language code of the destination URL
|
id
Specifies a unique id for an element
|
label
Specifies a label to be used as an alternative to the option item's contents.
|
label_a |
label_blank |
label_br |
label_button |
label_col |
label_colgroup |
label_div |
label_font |
label_form |
label_iframe |
label_img |
label_input |
label_option |
label_pre |
label_select |
label_span |
label_table |
label_td |
label_textarea |
label_th |
label_tr |
lang
Specifies a language code for the content in an element
|
longdesc
Specifies a page that contains a long description of the content of an iframe
|
marginheight
Specifies the top and bottom margins of an iframe
pixels
|
marginwidth
Specifies the left and right margins of an iframe
pixels
|
maxlength
Specifies the maximum length (in characters) of an input field (for type="text" or type="password")
|
method
Specifies how to send form-data
get
post
|
multiple
Specifies that multiple selections can be made.
|
name
Specifies the name for a form
Specifies the name of an iframe
Marks an area of the page that a link jumps to.
|
nowrap
Specifies that the content inside a cell should not wrap
Deprecated.
|
onblur
Script to be run when the element loses focus
|
onchange
Script to be run when the element changes
|
onclick
What to do on a mouse click
|
ondblclick
What to do on a mouse double-click
|
onfocus
Script to be run when the element gets focus
|
onkeydown
What to do when key is pressed
|
onkeypress
What to do when key is pressed and released
|
onkeyup
What to do when key is released
|
onload
Script to be run when a document loads
|
onmousedown
What to do when mouse button is pressed
|
onmousemove
What to do when mouse pointer moves
|
onmouseout
What to do when mouse pointer moves out of an element
|
onmouseover
What to do when mouse pointer moves over an element
|
onmouseup
What to do when mouse button is released
|
onreset
Script to be run when the form is reset
|
onselect
Script to be run when the element is selected
|
onsubmit
Script to be run when the form is submitted
|
onunload
Script to be run when a document unloads
|
pattern
Specifies the pattern to use for an input field.
|
placeholder
Specifies the placeholder to use for an input field.
|
readonly
Specifies that an input field should be read-only (for type="text" or type="password")
|
rel
Describes the relationship between the current document and the destination URI.
|
required
Specifies that an input field must be set with a value.
|
rev
Describes a reverse between the destination URI and the current document.
|
rows
Specifies the height of the textarea based on the number of visible lines of text.
|
rowspan
Sets the number of rows a cell should span
|
rules
Specifies which parts of the inside borders that should be visible
none groups rows cols all |
scope
Defines a way to associate header cells and data cells in a table
col
colgroup row rowgroup |
scrolling
Specifies whether or not to display scrollbars in an iframe
yes
no
auto
|
selected
Specifies that this option will be pre-selected when the user first loads the page.
|
size
Specifies the width of an input field
Specifies the font size.
|
span
Specifies how many columns to span.
|
src
Specifies the URL to an image to display as a submit button
|
style
Specifies an inline style for an element
|
summary
Specifies a summary of the content of a table
|
target
Deprecated.
|
title
Specifies extra information about an element
|
type
Specifies the type of an input element
The type of content at the link destination
button, checkbox, file, hidden, image, password, radio, reset, submit, text
|
valign
Vertical aligns the content in a table row
top
middle bottom baseline |
value
Specifies the value of an input element
|
width
Specifies the width of an iframe
pixels
|
xml_lang
Specifies a language code for the content in an element, in XHTML documents
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAttributeName() |
java.lang.String |
toString() |
static HtmlEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HtmlEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HtmlEnum label_blank
public static final HtmlEnum label_br
public static final HtmlEnum label_input
public static final HtmlEnum label_form
public static final HtmlEnum label_iframe
public static final HtmlEnum label_table
public static final HtmlEnum label_tr
public static final HtmlEnum label_th
public static final HtmlEnum label_td
public static final HtmlEnum label_textarea
public static final HtmlEnum label_a
public static final HtmlEnum label_button
public static final HtmlEnum label_img
public static final HtmlEnum label_div
public static final HtmlEnum label_span
public static final HtmlEnum label_pre
public static final HtmlEnum label_colgroup
public static final HtmlEnum label_col
public static final HtmlEnum label_font
public static final HtmlEnum label_select
public static final HtmlEnum label_option
public static final HtmlEnum clazz
public static final HtmlEnum dir
public static final HtmlEnum id
public static final HtmlEnum lang
public static final HtmlEnum style
public static final HtmlEnum title
public static final HtmlEnum xml_lang
public static final HtmlEnum action
public static final HtmlEnum accept
public static final HtmlEnum accept_charset
public static final HtmlEnum enctype
public static final HtmlEnum method
public static final HtmlEnum name
@Deprecated public static final HtmlEnum target
_blank
_self
_parent
_top
framename
public static final HtmlEnum align
(input) Specifies the alignment of an image input (only for type="image")
(iframe) Specifies the alignment of an iframe according to surrounding elements deprecated. Use styles instead.
Aligns the content in a table row right, left, center, justify,char
left
right
top
middle
bottom
public static final HtmlEnum alt
public static final HtmlEnum checked
public static final HtmlEnum disabled
public static final HtmlEnum maxlength
public static final HtmlEnum pattern
public static final HtmlEnum placeholder
public static final HtmlEnum readonly
public static final HtmlEnum required
public static final HtmlEnum size
public static final HtmlEnum src
public static final HtmlEnum type
public static final HtmlEnum value
public static final HtmlEnum frameborder
public static final HtmlEnum height
public static final HtmlEnum longdesc
public static final HtmlEnum marginheight
public static final HtmlEnum marginwidth
public static final HtmlEnum scrolling
public static final HtmlEnum width
@Deprecated public static final HtmlEnum bgcolor
public static final HtmlEnum border
public static final HtmlEnum cellpadding
public static final HtmlEnum cellspacing
public static final HtmlEnum frame
public static final HtmlEnum rules
public static final HtmlEnum summary
public static final HtmlEnum char_
public static final HtmlEnum charoff
public static final HtmlEnum valign
public static final HtmlEnum scope
public static final HtmlEnum rowspan
public static final HtmlEnum nowrap
public static final HtmlEnum colspan
public static final HtmlEnum axis
public static final HtmlEnum abbr
public static final HtmlEnum headers
public static final HtmlEnum rows
public static final HtmlEnum cols
public static final HtmlEnum href
public static final HtmlEnum hreflang
public static final HtmlEnum rel
public static final HtmlEnum rev
public static final HtmlEnum charset
public static final HtmlEnum span
public static final HtmlEnum face
public static final HtmlEnum color
public static final HtmlEnum multiple
public static final HtmlEnum selected
public static final HtmlEnum label
public static final HtmlEnum onload
public static final HtmlEnum onunload
public static final HtmlEnum onchange
Only valid in form elements
public static final HtmlEnum onsubmit
Only valid in form elements
public static final HtmlEnum onreset
Only valid in form elements
public static final HtmlEnum onselect
Only valid in form elements
public static final HtmlEnum onblur
Only valid in form elements
public static final HtmlEnum onfocus
Only valid in form elements
public static final HtmlEnum onkeydown
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
public static final HtmlEnum onkeypress
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
public static final HtmlEnum onkeyup
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, and title elements.
public static final HtmlEnum onclick
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, title elements.
public static final HtmlEnum ondblclick
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, title elements.
public static final HtmlEnum onmousedown
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, title elements.
public static final HtmlEnum onmousemove
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, title elements.
public static final HtmlEnum onmouseout
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, title elements.
public static final HtmlEnum onmouseover
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, title elements.
public static final HtmlEnum onmouseup
Not valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, title elements.
public static final HtmlEnum allowtransparency
public static HtmlEnum[] values()
for (HtmlEnum c : HtmlEnum.values()) System.out.println(c);
public static HtmlEnum valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getAttributeName()
public java.lang.String toString()
toString in class java.lang.Enum<HtmlEnum>