# text-decoration-style

> The `text-decoration-style` CSS property sets the style of the line decoration, such as 'solid', 'wavy', 'dotted', 'dashed' or 'double'.

## How do I make a wavy or dotted underline in CSS?

The property that defines the style of the text decoration, such as 'solid', 'wavy', 'dotted', 'dashed' or 'double'. This property allows for customization of the appearance of underlines, overlines and line-throughs, giving more creative options for text styling.

- Topic: Text Handling
- Type: property
- Browser support: Chrome 57+, Chrome Android 57+, Edge 79+, Firefox 36+, Firefox Android 36+, Safari 12.1+, Safari iOS 12.2+

## Example

Wrong:

```css
.error {
  text-decoration-style: wavy;
  text-decoration-color: red;
}
```

Right:

```css
.error {
  text-decoration: underline wavy red;
}
```

The shorthand sets the line, style and color together, so the wavy underline actually appears.

## Common mistakes

- The wavy style doesn't show because no decoration line is set.

## Key points

- A decoration line is set too, since `text-decoration-style` alone draws nothing.
- Wavy underlines are not used on normal links, where users expect a solid line.

## Interview questions

### What values does text-decoration-style accept?

`solid`, `double`, `dotted`, `dashed` and `wavy`.

### How do I make a dashed underline?

Use `text-decoration: underline dashed`, or set `text-decoration-style: dashed` along with an underline line.

## Related cards

- [text-decoration](https://wonderium.dev/css/text-decoration.md)
- [text-decoration-line](https://wonderium.dev/css/text-decoration-line.md)
- [text-decoration-color](https://wonderium.dev/css/text-decoration-color.md)
- [text-decoration-thickness](https://wonderium.dev/css/text-decoration-thickness.md)

---

- Level: [CSS](https://wonderium.dev/css.md)
- HTML version: https://wonderium.dev/css/text-decoration-style
- Last updated: 2026-11-25
