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

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

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

    Fields in javax.swing.text.html declared as CSS.Attribute
    Modifier and Type | Field | Description
    --- | --- | ---
    `static CSS.Attribute` | CSS.Attribute.`BACKGROUND`
    `static CSS.Attribute` | CSS.Attribute.`BACKGROUND_ATTACHMENT`
    `static CSS.Attribute` | CSS.Attribute.`BACKGROUND_COLOR`
    `static CSS.Attribute` | CSS.Attribute.`BACKGROUND_IMAGE`
    `static CSS.Attribute` | CSS.Attribute.`BACKGROUND_POSITION`
    `static CSS.Attribute` | CSS.Attribute.`BACKGROUND_REPEAT`
    `static CSS.Attribute` | CSS.Attribute.`BORDER`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_BOTTOM`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_BOTTOM_COLOR`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_BOTTOM_STYLE`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_BOTTOM_WIDTH`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_COLOR`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_LEFT`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_LEFT_COLOR`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_LEFT_STYLE`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_LEFT_WIDTH`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_RIGHT`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_RIGHT_COLOR`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_RIGHT_STYLE`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_RIGHT_WIDTH`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_STYLE`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_TOP`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_TOP_COLOR`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_TOP_STYLE`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_TOP_WIDTH`
    `static CSS.Attribute` | CSS.Attribute.`BORDER_WIDTH`
    `static CSS.Attribute` | CSS.Attribute.`CLEAR`
    `static CSS.Attribute` | CSS.Attribute.`COLOR`
    `static CSS.Attribute` | CSS.Attribute.`DISPLAY`
    `static CSS.Attribute` | CSS.Attribute.`FLOAT`
    `static CSS.Attribute` | CSS.Attribute.`FONT`
    `static CSS.Attribute` | CSS.Attribute.`FONT_FAMILY`
    `static CSS.Attribute` | CSS.Attribute.`FONT_SIZE`
    `static CSS.Attribute` | CSS.Attribute.`FONT_STYLE`
    `static CSS.Attribute` | CSS.Attribute.`FONT_VARIANT`
    `static CSS.Attribute` | CSS.Attribute.`FONT_WEIGHT`
    `static CSS.Attribute` | CSS.Attribute.`HEIGHT`
    `static CSS.Attribute` | CSS.Attribute.`LETTER_SPACING`
    `static CSS.Attribute` | CSS.Attribute.`LINE_HEIGHT`
    `static CSS.Attribute` | CSS.Attribute.`LIST_STYLE`
    `static CSS.Attribute` | CSS.Attribute.`LIST_STYLE_IMAGE`
    `static CSS.Attribute` | CSS.Attribute.`LIST_STYLE_POSITION`
    `static CSS.Attribute` | CSS.Attribute.`LIST_STYLE_TYPE`
    `static CSS.Attribute` | CSS.Attribute.`MARGIN`
    `static CSS.Attribute` | CSS.Attribute.`MARGIN_BOTTOM`
    `static CSS.Attribute` | CSS.Attribute.`MARGIN_LEFT`
    `static CSS.Attribute` | CSS.Attribute.`MARGIN_RIGHT`
    `static CSS.Attribute` | CSS.Attribute.`MARGIN_TOP`
    `static CSS.Attribute` | CSS.Attribute.`PADDING`
    `static CSS.Attribute` | CSS.Attribute.`PADDING_BOTTOM`
    `static CSS.Attribute` | CSS.Attribute.`PADDING_LEFT`
    `static CSS.Attribute` | CSS.Attribute.`PADDING_RIGHT`
    `static CSS.Attribute` | CSS.Attribute.`PADDING_TOP`
    `static CSS.Attribute` | CSS.Attribute.`TEXT_ALIGN`
    `static CSS.Attribute` | CSS.Attribute.`TEXT_DECORATION`
    `static CSS.Attribute` | CSS.Attribute.`TEXT_INDENT`
    `static CSS.Attribute` | CSS.Attribute.`TEXT_TRANSFORM`
    `static CSS.Attribute` | CSS.Attribute.`VERTICAL_ALIGN`
    `static CSS.Attribute` | CSS.Attribute.`WHITE_SPACE`
    `static CSS.Attribute` | CSS.Attribute.`WIDTH`
    `static CSS.Attribute` | CSS.Attribute.`WORD_SPACING`

    Methods in javax.swing.text.html that return CSS.Attribute
    Modifier and Type | Method | Description
    --- | --- | ---
    `static CSS.Attribute[]` | CSS.`getAllAttributeKeys()` Return the set of all possible CSS attribute keys.
    `static CSS.Attribute` | CSS.`getAttribute(String name)` Translates a string to a `CSS.Attribute` object.

    Methods in javax.swing.text.html with parameters of type CSS.Attribute
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | StyleSheet.`addCSSAttribute(MutableAttributeSet attr, CSS.Attribute key, String value)` Adds a CSS attribute to the given set.
    `boolean` | StyleSheet.`addCSSAttributeFromHTML(MutableAttributeSet attr, CSS.Attribute key, String value)` Adds a CSS attribute to the given set.

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.