The text-decoration-style property sets the style of the text decoration (like solid, wavy, dotted, dashed, double). Tip: Also look at the text-decoration property, which is a short-hand property for text-decoration-line, text-decoration-style, text-decoration-color, and text-decoration-thickness., text-decoration-style is used to define the type of text decoration, and the new recommendation brings two new values: double and wavy: text-decoration-line accepts values of underline, overline, line-through and blink (blink is deprecated however):, Examples Underling text Use the underline utility to add an underline to the text of an element:, The text-decoration-style property sets the style of the underline on links and the underline, overline, or line-through on any text with text-decoration applied., Here is an simple solution for it, original solution is by Sleek Geek in the post. display: inline-block; position: relative; border-bottom:2px dotted red; content: "~"; font-size: 0.6em; font-weight: 700; font-family: Times New Roman, Serif; color: red;, As of Oct/2023, browsers support this natively via the text-decoration-style CSS property. If you don't wanna use a gif for the curly underline, you can do it by pure css: foobar. (Or run in JSFiddle) Red, wavy underline is very simple, as specified in CSS 3's Text Decoration Module..