public static class HTML.Tag extends Object
Modifier and Type | Field and Description |
---|---|
static HTML.Tag |
A
Tag <a>
|
static HTML.Tag |
ADDRESS
Tag <address>
|
static HTML.Tag |
APPLET
Tag <applet>
|
static HTML.Tag |
AREA
Tag <area>
|
static HTML.Tag |
B
Tag <b>
|
static HTML.Tag |
BASE
Tag <base>
|
static HTML.Tag |
BASEFONT
Tag <basefont>
|
static HTML.Tag |
BIG
Tag <big>
|
static HTML.Tag |
BLOCKQUOTE
Tag <blockquote>
|
static HTML.Tag |
BODY
Tag <body>
|
static HTML.Tag |
BR
Tag <br>
|
static HTML.Tag |
CAPTION
Tag <caption>
|
static HTML.Tag |
CENTER
Tag <center>
|
static HTML.Tag |
CITE
Tag <cite>
|
static HTML.Tag |
CODE
Tag <code>
|
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
Tag <dd>
|
static HTML.Tag |
DFN
Tag <dfn>
|
static HTML.Tag |
DIR
Tag <dir>
|
static HTML.Tag |
DIV
Tag <div>
|
static HTML.Tag |
DL
Tag <dl>
|
static HTML.Tag |
DT
Tag <dt>
|
static HTML.Tag |
EM
Tag <em>
|
static HTML.Tag |
FONT
Tag <font>
|
static HTML.Tag |
FORM
Tag <form>
|
static HTML.Tag |
FRAME
Tag <frame>
|
static HTML.Tag |
FRAMESET
Tag <frameset>
|
static HTML.Tag |
H1
Tag <h1>
|
static HTML.Tag |
H2
Tag <h2>
|
static HTML.Tag |
H3
Tag <h3>
|
static HTML.Tag |
H4
Tag <h4>
|
static HTML.Tag |
H5
Tag <h5>
|
static HTML.Tag |
H6
Tag <h6>
|
static HTML.Tag |
HEAD
Tag <head>
|
static HTML.Tag |
HR
Tag <hr>
|
static HTML.Tag |
HTML
Tag <html>
|
static HTML.Tag |
I
Tag <i>
|
static HTML.Tag |
IMG
Tag <img>
|
static HTML.Tag |
IMPLIED
All text content must be in a paragraph element.
|
static HTML.Tag |
INPUT
Tag <input>
|
static HTML.Tag |
ISINDEX
Tag <isindex>
|
static HTML.Tag |
KBD
Tag <kbd>
|
static HTML.Tag |
LI
Tag <li>
|
static HTML.Tag |
LINK
Tag <link>
|
static HTML.Tag |
MAP
Tag <map>
|
static HTML.Tag |
MENU
Tag <menu>
|
static HTML.Tag |
META
Tag <meta>
|
static HTML.Tag |
NOFRAMES
Tag <noframes>
|
static HTML.Tag |
OBJECT
Tag <object>
|
static HTML.Tag |
OL
Tag <ol>
|
static HTML.Tag |
OPTION
Tag <option>
|
static HTML.Tag |
P
Tag <p>
|
static HTML.Tag |
PARAM
Tag <param>
|
static HTML.Tag |
PRE
Tag <pre>
|
static HTML.Tag |
S
Tag <s>
|
static HTML.Tag |
SAMP
Tag <samp>
|
static HTML.Tag |
SCRIPT
Tag <script>
|
static HTML.Tag |
SELECT
Tag <select>
|
static HTML.Tag |
SMALL
Tag <small>
|
static HTML.Tag |
SPAN
Tag <span>
|
static HTML.Tag |
STRIKE
Tag <strike>
|
static HTML.Tag |
STRONG
Tag <strong>
|
static HTML.Tag |
STYLE
Tag <style>
|
static HTML.Tag |
SUB
Tag <sub>
|
static HTML.Tag |
SUP
Tag <sup>
|
static HTML.Tag |
TABLE
Tag <table>
|
static HTML.Tag |
TD
Tag <td>
|
static HTML.Tag |
TEXTAREA
Tag <textarea>
|
static HTML.Tag |
TH
Tag <th>
|
static HTML.Tag |
TITLE
Tag <title>
|
static HTML.Tag |
TR
Tag <tr>
|
static HTML.Tag |
TT
Tag <tt>
|
static HTML.Tag |
U
Tag <u>
|
static HTML.Tag |
UL
Tag <ul>
|
static HTML.Tag |
VAR
Tag <var>
|
Modifier | Constructor and Description |
---|---|
|
Tag() |
protected |
Tag(String id)
Creates a new
Tag with the specified id ,
and with causesBreak and isBlock
set to false . |
protected |
Tag(String id,
boolean causesBreak,
boolean isBlock)
Creates a new
Tag with the specified id ;
causesBreak and isBlock are defined
by the user. |
Modifier and Type | Method and Description |
---|---|
boolean |
breaksFlow()
Returns
true if this tag causes a
line break to the flow of data, otherwise returns
false . |
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 string representation of the
tag.
|
public static final HTML.Tag A
public static final HTML.Tag ADDRESS
public static final HTML.Tag APPLET
public static final HTML.Tag AREA
public static final HTML.Tag B
public static final HTML.Tag BASE
public static final HTML.Tag BASEFONT
public static final HTML.Tag BIG
public static final HTML.Tag BLOCKQUOTE
public static final HTML.Tag BODY
public static final HTML.Tag BR
public static final HTML.Tag CAPTION
public static final HTML.Tag CENTER
public static final HTML.Tag CITE
public static final HTML.Tag CODE
public static final HTML.Tag DD
public static final HTML.Tag DFN
public static final HTML.Tag DIR
public static final HTML.Tag DIV
public static final HTML.Tag DL
public static final HTML.Tag DT
public static final HTML.Tag EM
public static final HTML.Tag FONT
public static final HTML.Tag FORM
public static final HTML.Tag FRAME
public static final HTML.Tag FRAMESET
public static final HTML.Tag H1
public static final HTML.Tag H2
public static final HTML.Tag H3
public static final HTML.Tag H4
public static final HTML.Tag H5
public static final HTML.Tag H6
public static final HTML.Tag HEAD
public static final HTML.Tag HR
public static final HTML.Tag HTML
public static final HTML.Tag I
public static final HTML.Tag IMG
public static final HTML.Tag INPUT
public static final HTML.Tag ISINDEX
public static final HTML.Tag KBD
public static final HTML.Tag LI
public static final HTML.Tag LINK
public static final HTML.Tag MAP
public static final HTML.Tag MENU
public static final HTML.Tag META
public static final HTML.Tag NOFRAMES
public static final HTML.Tag OBJECT
public static final HTML.Tag OL
public static final HTML.Tag OPTION
public static final HTML.Tag P
public static final HTML.Tag PARAM
public static final HTML.Tag PRE
public static final HTML.Tag SAMP
public static final HTML.Tag SCRIPT
public static final HTML.Tag SELECT
public static final HTML.Tag SMALL
public static final HTML.Tag SPAN
public static final HTML.Tag STRIKE
public static final HTML.Tag S
public static final HTML.Tag STRONG
public static final HTML.Tag STYLE
public static final HTML.Tag SUB
public static final HTML.Tag SUP
public static final HTML.Tag TABLE
public static final HTML.Tag TD
public static final HTML.Tag TEXTAREA
public static final HTML.Tag TH
public static final HTML.Tag TITLE
public static final HTML.Tag TR
public static final HTML.Tag TT
public static final HTML.Tag U
public static final HTML.Tag UL
public static final HTML.Tag VAR
public static final HTML.Tag IMPLIED
This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured.
public static final HTML.Tag CONTENT
This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured.
public static final HTML.Tag COMMENT
This is a tag synthesized by the HTML reader. Since elements are identified by their tag type, we create a some fake tag types to mark the elements that were manufactured.
public Tag()
protected Tag(String id)
Tag
with the specified id
,
and with causesBreak
and isBlock
set to false
.id
- the id of the new tagprotected Tag(String id, boolean causesBreak, boolean isBlock)
Tag
with the specified id
;
causesBreak
and isBlock
are defined
by the user.id
- the id of the new tagcausesBreak
- true
if this tag
causes a break to the flow of dataisBlock
- true
if the tag is used
to add structure to a documentpublic boolean isBlock()
true
if this tag is a block
tag, which is a tag used to add structure to a
document.true
if this tag is a block
tag, otherwise returns false
public boolean breaksFlow()
true
if this tag causes a
line break to the flow of data, otherwise returns
false
.true
if this tag causes a
line break to the flow of data, otherwise returns
false
public boolean isPreformatted()
true
if this tag is pre-formatted,
which is true if the tag is either PRE
or
TEXTAREA
.true
if this tag is pre-formatted,
otherwise returns false
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-01-26-133437.ivan.openjdk9onspinwait