javax.swing.text.html
public static class HTML.Tag extends Object
Modifier and Type | Field and Description |
---|---|
static HTML.Tag |
A
The <a> tag
|
static HTML.Tag |
ADDRESS
The <address> tag
|
static HTML.Tag |
APPLET
The <applet> tag
|
static HTML.Tag |
AREA
The <area> tag
|
static HTML.Tag |
B
The <b> tag
|
static HTML.Tag |
BASE
The <base> tag
|
static HTML.Tag |
BASEFONT
The <basefont> tag
|
static HTML.Tag |
BIG
The <big> tag
|
static HTML.Tag |
BLOCKQUOTE
The <blockquote> tag , breaks flow, block tag.
|
static HTML.Tag |
BODY
The <body> tag , breaks flow, block tag.
|
static HTML.Tag |
BR
The <br> tag , breaks flow.
|
static HTML.Tag |
CAPTION
The <caption> tag
|
static HTML.Tag |
CENTER
The <center> tag , breaks flow.
|
static HTML.Tag |
CITE
The <cite> tag
|
static HTML.Tag |
CODE
The <code> tag
|
static HTML.Tag |
COMMENT
All comments are labeled with this tag.
|
static HTML.Tag |
CONTENT
All text content is labeled with this tag.
|
static HTML.Tag |
DD
The <dd> tag , breaks flow, block tag.
|
static HTML.Tag |
DFN
The <dfn> tag
|
static HTML.Tag |
DIR
The <dir> tag , breaks flow, block tag.
|
static HTML.Tag |
DIV
The <div> tag , breaks flow, block tag.
|
static HTML.Tag |
DL
The <dl> tag , breaks flow, block tag.
|
static HTML.Tag |
DT
The <dt> tag , breaks flow, block tag.
|
static HTML.Tag |
EM
The <em> tag
|
static HTML.Tag |
FONT
The <font> tag
|
static HTML.Tag |
FORM
The <form> tag , breaks flow.
|
static HTML.Tag |
FRAME
The <frame> tag
|
static HTML.Tag |
FRAMESET
The <frameset> tag
|
static HTML.Tag |
H1
The <h1> tag , breaks flow, block tag.
|
static HTML.Tag |
H2
The <h2> tag , breaks flow, block tag.
|
static HTML.Tag |
H3
The <h3> tag , breaks flow, block tag.
|
static HTML.Tag |
H4
The <h4> tag , breaks flow, block tag.
|
static HTML.Tag |
H5
The <h5> tag , breaks flow, block tag.
|
static HTML.Tag |
H6
The <h6> tag , breaks flow, block tag.
|
static HTML.Tag |
HEAD
The <head> tag , breaks flow, block tag.
|
static HTML.Tag |
HR
The <hr> tag , breaks flow.
|
static HTML.Tag |
HTML
The <html> tag , breaks flow.
|
static HTML.Tag |
I
The <i> tag
|
static HTML.Tag |
IMG
The <img> tag
|
static HTML.Tag |
IMPLIED
All text content must be in a paragraph element.
|
static HTML.Tag |
INPUT
The <input> tag
|
static HTML.Tag |
ISINDEX
The <isindex> tag , breaks flow.
|
static HTML.Tag |
KBD
The <kbd> tag
|
static HTML.Tag |
LI
The <li> tag , breaks flow, block tag.
|
static HTML.Tag |
LINK
The <link> tag
|
static HTML.Tag |
MAP
The <map> tag
|
static HTML.Tag |
MENU
The <menu> tag , breaks flow, block tag.
|
static HTML.Tag |
META
The <meta> tag
|
static HTML.Tag |
NOFRAMES
The <noframes> tag , breaks flow, block tag.
|
static HTML.Tag |
OBJECT
The <object> tag
|
static HTML.Tag |
OL
The <ol> tag , breaks flow, block tag.
|
static HTML.Tag |
OPTION
The <option> tag
|
static HTML.Tag |
P
The <p> tag , breaks flow, block tag.
|
static HTML.Tag |
PARAM
The <param> tag
|
static HTML.Tag |
PRE
The <pre> tag , breaks flow, block tag, preformatted.
|
static HTML.Tag |
S
The <s> tag
|
static HTML.Tag |
SAMP
The <samp> tag
|
static HTML.Tag |
SCRIPT
The <script> tag
|
static HTML.Tag |
SELECT
The <select> tag
|
static HTML.Tag |
SMALL
The <small> tag
|
static HTML.Tag |
SPAN
The <span> tag
|
static HTML.Tag |
STRIKE
The <strike> tag
|
static HTML.Tag |
STRONG
The <strong> tag
|
static HTML.Tag |
STYLE
The <style> tag
|
static HTML.Tag |
SUB
The <sub> tag
|
static HTML.Tag |
SUP
The <sup> tag
|
static HTML.Tag |
TABLE
The <table> tag , block tag.
|
static HTML.Tag |
TD
The <td> tag , breaks flow, block tag.
|
static HTML.Tag |
TEXTAREA
The <textarea> tag , preformatted.
|
static HTML.Tag |
TH
The <th> tag , breaks flow, block tag.
|
static HTML.Tag |
TITLE
The <title> tag , breaks flow, block tag.
|
static HTML.Tag |
TR
The <tr> tag , block tag.
|
static HTML.Tag |
TT
The <tt> tag
|
static HTML.Tag |
U
The <u> tag
|
static HTML.Tag |
UL
The <ul> tag , breaks flow, block tag.
|
static HTML.Tag |
VAR
The <var> tag
|
Modifier | Constructor and Description |
---|---|
|
HTML.Tag()
Create the unitialised instance of HTML.Tag.
|
protected |
HTML.Tag(String id)
Creates a new Tag with the specified id, and with causesBreak
and isBlock set to false.
|
protected |
HTML.Tag(String id,
boolean causesBreak,
boolean isBlock)
Creates a new Tag with the specified tag name and
causesBreak and isBlock properties.
|
Modifier and Type | Method and Description |
---|---|
boolean |
breaksFlow()
Returns true if this tag causes a line break to the flow of text
|
boolean |
isBlock()
Returns true if this tag is a block tag, which is a tag used to
add structure to a document.
|
boolean |
isPreformatted()
Returns true if this tag is pre-formatted, which is true if
the tag is either PRE or TEXTAREA
|
String |
toString()
Returns the tag name.
|
public static final HTML.Tag BLOCKQUOTE
public static final HTML.Tag COMMENT
public static final HTML.Tag CONTENT
public HTML.Tag()
breaksFlow()
, isBlock()
and isPreformatted()
will always return false.
The toString()
will return null
.protected HTML.Tag(String id)
public boolean isBlock()
public boolean isPreformatted()
public boolean breaksFlow()
public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)