CSS · Properties — CSS Text Decoration

text-emphasis

The CSS text-emphasis property. Initial value: text-emphasis-style,text-emphasis-color. Inherited.

Syntax
text-emphasis: <'text-emphasis-style'> || <'text-emphasis-color'>

Example

Try it

Notes

Media: visual. Applies to: allElements. Computed value: text-emphasis-style,text-emphasis-color.

More in this group

text-decoration-color text-decoration-inset text-decoration-line text-decoration-skip text-decoration-skip-ink text-decoration-style text-decoration-thickness text-emphasis-color

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course