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

- Packages that use HTML.Attribute
  Package | Description
  --- | ---
  javax.swing.text.html | Provides the class `HTMLEditorKit` and supporting classes for creating HTML text editors.

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

    Fields in javax.swing.text.html declared as HTML.Attribute
    Modifier and Type | Field | Description
    --- | --- | ---
    `static HTML.Attribute` | HTML.Attribute.`ACTION`
    `static HTML.Attribute` | HTML.Attribute.`ALIGN`
    `static HTML.Attribute` | HTML.Attribute.`ALINK`
    `static HTML.Attribute` | HTML.Attribute.`ALT`
    `static HTML.Attribute` | HTML.Attribute.`ARCHIVE`
    `static HTML.Attribute` | HTML.Attribute.`BACKGROUND`
    `static HTML.Attribute` | HTML.Attribute.`BGCOLOR`
    `static HTML.Attribute` | HTML.Attribute.`BORDER`
    `static HTML.Attribute` | HTML.Attribute.`CELLPADDING`
    `static HTML.Attribute` | HTML.Attribute.`CELLSPACING`
    `static HTML.Attribute` | HTML.Attribute.`CHECKED`
    `static HTML.Attribute` | HTML.Attribute.`CLASS`
    `static HTML.Attribute` | HTML.Attribute.`CLASSID`
    `static HTML.Attribute` | HTML.Attribute.`CLEAR`
    `static HTML.Attribute` | HTML.Attribute.`CODE`
    `static HTML.Attribute` | HTML.Attribute.`CODEBASE`
    `static HTML.Attribute` | HTML.Attribute.`CODETYPE`
    `static HTML.Attribute` | HTML.Attribute.`COLOR`
    `static HTML.Attribute` | HTML.Attribute.`COLS`
    `static HTML.Attribute` | HTML.Attribute.`COLSPAN`
    `static HTML.Attribute` | HTML.Attribute.`COMMENT`
    `static HTML.Attribute` | HTML.Attribute.`COMPACT`
    `static HTML.Attribute` | HTML.Attribute.`CONTENT`
    `static HTML.Attribute` | HTML.Attribute.`COORDS`
    `static HTML.Attribute` | HTML.Attribute.`DATA`
    `static HTML.Attribute` | HTML.Attribute.`DECLARE`
    `static HTML.Attribute` | HTML.Attribute.`DIR`
    `static HTML.Attribute` | HTML.Attribute.`DUMMY`
    `static HTML.Attribute` | HTML.Attribute.`ENCTYPE`
    `static HTML.Attribute` | HTML.Attribute.`ENDTAG`
    `static HTML.Attribute` | HTML.Attribute.`FACE`
    `static HTML.Attribute` | HTML.Attribute.`FRAMEBORDER`
    `static HTML.Attribute` | HTML.Attribute.`HALIGN`
    `static HTML.Attribute` | HTML.Attribute.`HEIGHT`
    `static HTML.Attribute` | HTML.Attribute.`HREF`
    `static HTML.Attribute` | HTML.Attribute.`HSPACE`
    `static HTML.Attribute` | HTML.Attribute.`HTTPEQUIV`
    `static HTML.Attribute` | HTML.Attribute.`ID`
    `static HTML.Attribute` | HTML.Attribute.`ISMAP`
    `static HTML.Attribute` | HTML.Attribute.`LANG`
    `static HTML.Attribute` | HTML.Attribute.`LANGUAGE`
    `static HTML.Attribute` | HTML.Attribute.`LINK`
    `static HTML.Attribute` | HTML.Attribute.`LOWSRC`
    `static HTML.Attribute` | HTML.Attribute.`MARGINHEIGHT`
    `static HTML.Attribute` | HTML.Attribute.`MARGINWIDTH`
    `static HTML.Attribute` | HTML.Attribute.`MAXLENGTH`
    `static HTML.Attribute` | HTML.Attribute.`METHOD`
    `static HTML.Attribute` | HTML.Attribute.`MULTIPLE`
    `static HTML.Attribute` | HTML.Attribute.`N`
    `static HTML.Attribute` | HTML.Attribute.`NAME`
    `static HTML.Attribute` | HTML.Attribute.`NOHREF`
    `static HTML.Attribute` | HTML.Attribute.`NORESIZE`
    `static HTML.Attribute` | HTML.Attribute.`NOSHADE`
    `static HTML.Attribute` | HTML.Attribute.`NOWRAP`
    `static HTML.Attribute` | HTML.Attribute.`PROMPT`
    `static HTML.Attribute` | HTML.Attribute.`REL`
    `static HTML.Attribute` | HTML.Attribute.`REV`
    `static HTML.Attribute` | HTML.Attribute.`ROWS`
    `static HTML.Attribute` | HTML.Attribute.`ROWSPAN`
    `static HTML.Attribute` | HTML.Attribute.`SCROLLING`
    `static HTML.Attribute` | HTML.Attribute.`SELECTED`
    `static HTML.Attribute` | HTML.Attribute.`SHAPE`
    `static HTML.Attribute` | HTML.Attribute.`SHAPES`
    `static HTML.Attribute` | HTML.Attribute.`SIZE`
    `static HTML.Attribute` | HTML.Attribute.`SRC`
    `static HTML.Attribute` | HTML.Attribute.`STANDBY`
    `static HTML.Attribute` | HTML.Attribute.`START`
    `static HTML.Attribute` | HTML.Attribute.`STYLE`
    `static HTML.Attribute` | HTML.Attribute.`TARGET`
    `static HTML.Attribute` | HTML.Attribute.`TEXT`
    `static HTML.Attribute` | HTML.Attribute.`TITLE`
    `static HTML.Attribute` | HTML.Attribute.`TYPE`
    `static HTML.Attribute` | HTML.Attribute.`USEMAP`
    `static HTML.Attribute` | HTML.Attribute.`VALIGN`
    `static HTML.Attribute` | HTML.Attribute.`VALUE`
    `static HTML.Attribute` | HTML.Attribute.`VALUETYPE`
    `static HTML.Attribute` | HTML.Attribute.`VERSION`
    `static HTML.Attribute` | HTML.Attribute.`VLINK`
    `static HTML.Attribute` | HTML.Attribute.`VSPACE`
    `static HTML.Attribute` | HTML.Attribute.`WIDTH`

    Methods in javax.swing.text.html that return HTML.Attribute
    Modifier and Type | Method | Description
    --- | --- | ---
    `static HTML.Attribute[]` | HTML.`getAllAttributeKeys()` Returns the set of HTML attributes recognized.
    `static HTML.Attribute` | HTML.`getAttributeKey(String attName)` Fetches an attribute constant for a well-known attribute name (i.e.

    Methods in javax.swing.text.html with parameters of type HTML.Attribute
    Modifier and Type | Method | Description
    --- | --- | ---
    `static int` | HTML.`getIntegerAttributeValue(AttributeSet attr, HTML.Attribute key, int def)` Fetches an integer attribute value.

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.