## Uses of Class
javax.swing.text.html.HTML.Tag

- Packages that use HTML.Tag
  Package | Description
  --- | ---
  javax.swing.text.html | Provides the class `HTMLEditorKit` and supporting classes for creating HTML text editors.
  javax.swing.text.html.parser | Provides the default HTML parser, along with support classes.

- - ### Uses of HTML.Tag in javax.swing.text.html

    Subclasses of HTML.Tag in javax.swing.text.html
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `HTML.UnknownTag` | Class represents unknown HTML tag.

    Fields in javax.swing.text.html declared as HTML.Tag
    Modifier and Type | Field | Description
    --- | --- | ---
    `static HTML.Tag` | HTML.Tag.`A` | Tag <a>
    `static HTML.Tag` | HTML.Tag.`ADDRESS` | Tag <address>
    `protected HTML.Tag` | HTMLEditorKit.InsertHTMLTextAction.`addTag` | Tag in HTML to start adding tags from.
    `protected HTML.Tag` | HTMLEditorKit.InsertHTMLTextAction.`alternateAddTag` | Alternate tag in HTML to start adding tags from if parentTag is not found and alternateParentTag is found.
    `protected HTML.Tag` | HTMLEditorKit.InsertHTMLTextAction.`alternateParentTag` | Alternate Tag to check for in the document if parentTag is not found.
    `static HTML.Tag` | HTML.Tag.`APPLET` | Tag <applet>
    `static HTML.Tag` | HTML.Tag.`AREA` | Tag <area>
    `static HTML.Tag` | HTML.Tag.`B` | Tag <b>
    `static HTML.Tag` | HTML.Tag.`BASE` | Tag <base>
    `static HTML.Tag` | HTML.Tag.`BASEFONT` | Tag <basefont>
    `static HTML.Tag` | HTML.Tag.`BIG` | Tag <big>
    `static HTML.Tag` | HTML.Tag.`BLOCKQUOTE` | Tag <blockquote>
    `static HTML.Tag` | HTML.Tag.`BODY` | Tag <body>
    `static HTML.Tag` | HTML.Tag.`BR` | Tag <br>
    `static HTML.Tag` | HTML.Tag.`CAPTION` | Tag <caption>
    `static HTML.Tag` | HTML.Tag.`CENTER` | Tag <center>
    `static HTML.Tag` | HTML.Tag.`CITE` | Tag <cite>
    `static HTML.Tag` | HTML.Tag.`CODE` | Tag <code>
    `static HTML.Tag` | HTML.Tag.`COMMENT` | All comments are labeled with this tag.
    `static HTML.Tag` | HTML.Tag.`CONTENT` | All text content is labeled with this tag.
    `static HTML.Tag` | HTML.Tag.`DD` | Tag <dd>
    `static HTML.Tag` | HTML.Tag.`DFN` | Tag <dfn>
    `static HTML.Tag` | HTML.Tag.`DIR` | Tag <dir>
    `static HTML.Tag` | HTML.Tag.`DIV` | Tag <div>
    `static HTML.Tag` | HTML.Tag.`DL` | Tag <dl>
    `static HTML.Tag` | HTML.Tag.`DT` | Tag <dt>
    `static HTML.Tag` | HTML.Tag.`EM` | Tag <em>
    `static HTML.Tag` | HTML.Tag.`FONT` | Tag <font>
    `static HTML.Tag` | HTML.Tag.`FORM` | Tag <form>
    `static HTML.Tag` | HTML.Tag.`FRAME` | Tag <frame>
    `static HTML.Tag` | HTML.Tag.`FRAMESET` | Tag <frameset>
    `static HTML.Tag` | HTML.Tag.`H1` | Tag <h1>
    `static HTML.Tag` | HTML.Tag.`H2` | Tag <h2>
    `static HTML.Tag` | HTML.Tag.`H3` | Tag <h3>
    `static HTML.Tag` | HTML.Tag.`H4` | Tag <h4>
    `static HTML.Tag` | HTML.Tag.`H5` | Tag <h5>
    `static HTML.Tag` | HTML.Tag.`H6` | Tag <h6>
    `static HTML.Tag` | HTML.Tag.`HEAD` | Tag <head>
    `static HTML.Tag` | HTML.Tag.`HR` | Tag <hr>
    `static HTML.Tag` | HTML.Tag.`HTML` | Tag <html>
    `static HTML.Tag` | HTML.Tag.`I` | Tag <i>
    `static HTML.Tag` | HTML.Tag.`IMG` | Tag <img>
    `static HTML.Tag` | HTML.Tag.`IMPLIED` | All text content must be in a paragraph element.
    `static HTML.Tag` | HTML.Tag.`INPUT` | Tag <input>
    `static HTML.Tag` | HTML.Tag.`ISINDEX` | Tag <isindex>
    `static HTML.Tag` | HTML.Tag.`KBD` | Tag <kbd>
    `static HTML.Tag` | HTML.Tag.`LI` | Tag <li>
    `static HTML.Tag` | HTML.Tag.`LINK` | Tag <link>
    `static HTML.Tag` | HTML.Tag.`MAP` | Tag <map>
    `static HTML.Tag` | HTML.Tag.`MENU` | Tag <menu>
    `static HTML.Tag` | HTML.Tag.`META` | Tag <meta>
    `static HTML.Tag` | HTML.Tag.`NOFRAMES` | Tag <noframes>
    `static HTML.Tag` | HTML.Tag.`OBJECT` | Tag <object>
    `static HTML.Tag` | HTML.Tag.`OL` | Tag <ol>
    `static HTML.Tag` | HTML.Tag.`OPTION` | Tag <option>
    `static HTML.Tag` | HTML.Tag.`P` | Tag <p>
    `static HTML.Tag` | HTML.Tag.`PARAM` | Tag <param>
    `protected HTML.Tag` | HTMLEditorKit.InsertHTMLTextAction.`parentTag` | Tag to check for in the document.
    `static HTML.Tag` | HTML.Tag.`PRE` | Tag <pre>
    `static HTML.Tag` | HTML.Tag.`S` | Tag <s>
    `static HTML.Tag` | HTML.Tag.`SAMP` | Tag <samp>
    `static HTML.Tag` | HTML.Tag.`SCRIPT` | Tag <script>
    `static HTML.Tag` | HTML.Tag.`SELECT` | Tag <select>
    `static HTML.Tag` | HTML.Tag.`SMALL` | Tag <small>
    `static HTML.Tag` | HTML.Tag.`SPAN` | Tag <span>
    `static HTML.Tag` | HTML.Tag.`STRIKE` | Tag <strike>
    `static HTML.Tag` | HTML.Tag.`STRONG` | Tag <strong>
    `static HTML.Tag` | HTML.Tag.`STYLE` | Tag <style>
    `static HTML.Tag` | HTML.Tag.`SUB` | Tag <sub>
    `static HTML.Tag` | HTML.Tag.`SUP` | Tag <sup>
    `static HTML.Tag` | HTML.Tag.`TABLE` | Tag <table>
    `static HTML.Tag` | HTML.Tag.`TD` | Tag <td>
    `static HTML.Tag` | HTML.Tag.`TEXTAREA` | Tag <textarea>
    `static HTML.Tag` | HTML.Tag.`TH` | Tag <th>
    `static HTML.Tag` | HTML.Tag.`TITLE` | Tag <title>
    `static HTML.Tag` | HTML.Tag.`TR` | Tag <tr>
    `static HTML.Tag` | HTML.Tag.`TT` | Tag <tt>
    `static HTML.Tag` | HTML.Tag.`U` | Tag <u>
    `static HTML.Tag` | HTML.Tag.`UL` | Tag <ul>
    `static HTML.Tag` | HTML.Tag.`VAR` | Tag <var>

    Methods in javax.swing.text.html that return HTML.Tag
    Modifier and Type | Method | Description
    --- | --- | ---
    `static HTML.Tag[]` | HTML.`getAllTags​()` | Returns the set of actual HTML tags that are recognized by the default HTML reader.
    `static HTML.Tag` | HTML.`getTag​(String tagName)` | Fetches a tag constant for a well-known tag name (i.e. one of the tags in the set {A, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BIG, BLOCKQUOTE, BODY, BR, CAPTION, CENTER, CITE, CODE, DD, DFN, DIR, DIV, DL, DT, EM, FONT, FORM, FRAME, FRAMESET, H1, H2, H3, H4, H5, H6, HEAD, HR, HTML, I, IMG, INPUT, ISINDEX, KBD, LI, LINK, MAP, MENU, META, NOBR, NOFRAMES, OBJECT, OL, OPTION, P, PARAM, PRE, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, S, STRONG, STYLE, SUB, SUP, TABLE, TD, TEXTAREA, TH, TITLE, TR, TT, U, UL, VAR}.
    `abstract HTML.Tag` | HTMLDocument.Iterator.`getTag​()` | Type of tag this iterator represents.

    Methods in javax.swing.text.html with parameters of type HTML.Tag
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected void` | HTMLDocument.HTMLReader.`addSpecialElement​(HTML.Tag t, MutableAttributeSet a)` | Adds content that is basically specified entirely in the attribute set.
    `protected void` | HTMLDocument.HTMLReader.`blockClose​(HTML.Tag t)` | Adds an instruction to the parse buffer to close out a block element of the given type.
    `protected void` | HTMLDocument.HTMLReader.`blockOpen​(HTML.Tag t, MutableAttributeSet attr)` | Adds an instruction to the parse buffer to create a block element with the given attributes.
    `protected int` | HTMLEditorKit.HTMLTextAction.`elementCountToTag​(HTMLDocument doc, int offset, HTML.Tag tag)` | Returns number of elements, starting at the deepest leaf, needed to get to an element representing `tag`.
    `void` | HTMLDocument.HTMLReader.BlockAction.`end​(HTML.Tag t)` |
    `void` | HTMLDocument.HTMLReader.CharacterAction.`end​(HTML.Tag t)` |
    `void` | HTMLDocument.HTMLReader.FormAction.`end​(HTML.Tag t)` |
    `void` | HTMLDocument.HTMLReader.HiddenAction.`end​(HTML.Tag t)` |
    `void` | HTMLDocument.HTMLReader.ParagraphAction.`end​(HTML.Tag t)` |
    `void` | HTMLDocument.HTMLReader.PreAction.`end​(HTML.Tag t)` |
    `void` | HTMLDocument.HTMLReader.TagAction.`end​(HTML.Tag t)` | Called when an end tag is seen for the type of tag this action was registered to.
    `protected Element` | HTMLEditorKit.HTMLTextAction.`findElementMatchingTag​(HTMLDocument doc, int offset, HTML.Tag tag)` | Returns the deepest element at `offset` matching `tag`.
    `HTMLDocument.Iterator` | HTMLDocument.`getIterator​(HTML.Tag t)` | Fetches an iterator for the specified HTML tag.
    `HTMLEditorKit.ParserCallback` | HTMLDocument.`getReader​(int pos, int popDepth, int pushDepth, HTML.Tag insertTag)` | Returns the reader for the parser to use to load the document with HTML.
    `Style` | StyleSheet.`getRule​(HTML.Tag t, Element e)` | Fetches the style to use to render the given type of HTML tag.
    `void` | HTMLDocument.HTMLReader.`handleEndTag​(HTML.Tag t, int pos)` | Callback from the parser.
    `void` | HTMLEditorKit.ParserCallback.`handleEndTag​(HTML.Tag t, int pos)` | Callback from the parser.
    `void` | HTMLDocument.HTMLReader.`handleSimpleTag​(HTML.Tag t, MutableAttributeSet a, int pos)` | Callback from the parser.
    `void` | HTMLEditorKit.ParserCallback.`handleSimpleTag​(HTML.Tag t, MutableAttributeSet a, int pos)` | Callback from the parser.
    `void` | HTMLDocument.HTMLReader.`handleStartTag​(HTML.Tag t, MutableAttributeSet a, int pos)` | Callback from the parser.
    `void` | HTMLEditorKit.ParserCallback.`handleStartTag​(HTML.Tag t, MutableAttributeSet a, int pos)` | Callback from the parser.
    `protected void` | HTMLEditorKit.InsertHTMLTextAction.`insertAtBoundary​(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)` | This is invoked when inserting at a boundary.
    `protected void` | HTMLEditorKit.InsertHTMLTextAction.`insertAtBoundry​(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)` | Deprecated. As of Java 2 platform v1.3, use insertAtBoundary
    `void` | HTMLEditorKit.`insertHTML​(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag)` | Inserts HTML into an existing document.
    `protected void` | HTMLEditorKit.InsertHTMLTextAction.`insertHTML​(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag)` | A cover for HTMLEditorKit.insertHTML.
    `protected boolean` | HTMLWriter.`matchNameAttribute​(AttributeSet attr, HTML.Tag tag)` | Returns true if the StyleConstants.NameAttribute is equal to the tag that is passed in as a parameter.
    `protected void` | HTMLDocument.HTMLReader.`registerTag​(HTML.Tag t, HTMLDocument.HTMLReader.TagAction a)` | Registers a handler for the given tag.
    `void` | HTMLDocument.HTMLReader.BlockAction.`start​(HTML.Tag t, MutableAttributeSet attr)` |
    `void` | HTMLDocument.HTMLReader.CharacterAction.`start​(HTML.Tag t, MutableAttributeSet attr)` |
    `void` | HTMLDocument.HTMLReader.FormAction.`start​(HTML.Tag t, MutableAttributeSet attr)` |
    `void` | HTMLDocument.HTMLReader.HiddenAction.`start​(HTML.Tag t, MutableAttributeSet a)` |
    `void` | HTMLDocument.HTMLReader.IsindexAction.`start​(HTML.Tag t, MutableAttributeSet a)` |
    `void` | HTMLDocument.HTMLReader.ParagraphAction.`start​(HTML.Tag t, MutableAttributeSet a)` |
    `void` | HTMLDocument.HTMLReader.PreAction.`start​(HTML.Tag t, MutableAttributeSet attr)` |
    `void` | HTMLDocument.HTMLReader.SpecialAction.`start​(HTML.Tag t, MutableAttributeSet a)` |
    `void` | HTMLDocument.HTMLReader.TagAction.`start​(HTML.Tag t, MutableAttributeSet a)` | Called when a start tag is seen for the type of tag this action was registered to.

    Constructors in javax.swing.text.html with parameters of type HTML.Tag
    Constructor | Description
    --- | ---
    `HTMLReader​(int offset, int popDepth, int pushDepth, HTML.Tag insertTag)` | Constructs an HTMLReader.
    `InsertHTMLTextAction​(String name, String html, HTML.Tag parentTag, HTML.Tag addTag)` | Creates a new InsertHTMLTextAction.
    `InsertHTMLTextAction​(String name, String html, HTML.Tag parentTag, HTML.Tag addTag, HTML.Tag alternateParentTag, HTML.Tag alternateAddTag)` | Creates a new InsertHTMLTextAction.

  - ### Uses of HTML.Tag in javax.swing.text.html.parser

    Methods in javax.swing.text.html.parser that return HTML.Tag
    Modifier and Type | Method | Description
    --- | --- | ---
    `HTML.Tag` | TagElement.`getHTMLTag​()` | Returns the tag constant corresponding to the name of the `element`