text-decoration-line
The text-decoration-line property specifies the line type of text decorations.
Formal Syntax
none | [ underline || overline || line-through || blink ] | spelling-error | grammar-error
JavaScript Access
// Access via element.style
element.style.textDecorationLine = 'none';
Browser Support
| Feature | Chrome | Firefox | Safari | Edge |
|---|---|---|---|---|
| text-decoration-line | 57 | 36 | 12.1 | 79 |
| blink | 57 | 26 | 8 | 79 |
| grammar-error | 121 | 137 | 26.2 | 121 |
| line-through | 57 | 6 | 8 | 79 |
| none | 57 | 6 | 8 | 79 |
| overline | 57 | 6 | 8 | 79 |
| spelling-error | 121 | 137 | 26.2 | 121 |
| underline | 57 | 6 | 8 | 79 |
Related Properties
- text-decoration
- text-decoration-color
- text-decoration-skip-ink
- text-decoration-style
- text-decoration-thickness
- text-emphasis
- text-emphasis-color
- text-emphasis-position
- text-emphasis-style
- text-shadow
- text-underline-offset
- text-underline-position
- text-decoration-inset ๐งช
- text-decoration-skip ๐งช
- text-decoration-skip-box ๐ง
- text-decoration-skip-self ๐ง
- text-decoration-skip-spaces ๐ง
- text-emphasis-skip ๐ง