The text-emphasis property adds decorative marks to text characters — a shorthand for setting both the mark shape and its color.
01
Emphasis Marks
Highlight each character.
02
Shorthand
Style plus color.
03
Shapes
Dot, circle, sesame.
04
Custom Symbol
Use a string value.
05
East Asian Text
Common in CJK layouts.
06
Longhands
Split style and color.
Fundamentals
Introduction
The text-emphasis property in CSS is used to apply emphasis marks to text, which is commonly used in East Asian typography. These emphasis marks can be shapes such as dots, circles, or custom symbols, and they are placed alongside the text to highlight or emphasize it.
This property is useful for enhancing the readability and visual appeal of your text content, especially when italics or boldface are not the best cultural fit.
Definition and Usage
Use text-emphasis when you want small decorative marks drawn on each character. It is the shorthand for text-emphasis-style and text-emphasis-color. Pair it with text-emphasis-position when you need to control whether marks appear above or below the text.
💡
Beginner Tip
Start with a simple value like text-emphasis: dot red; to see how marks appear on every character in the element.
Foundation
📝 Syntax
The text-emphasis property is a shorthand for setting text-emphasis-style and text-emphasis-color. The basic syntax is as follows:
The browser repeats the custom symbol above or below each character in the element.
A11y
♿ Accessibility
Do not rely on marks alone — Emphasis marks are decorative. Use semantic HTML such as <em> or <strong> for meaningful emphasis.
Keep contrast readable — Choose mark colors that stand out against the text and background.
Test with screen readers — Emphasis marks may not be announced, so important meaning should stay in the text itself.
Avoid overuse — Too many marked characters can reduce readability.
Companion
text-emphasis in the family
text-emphasis combines style and color in one declaration. Use the longhand properties when you only need to change one part, and add text-emphasis-position when marks should appear above or below the text.
Set text-emphasis: dot red; or split the values across longhand properties.
CSS rule
2
The browser maps marks to characters
Each character in the element gets a small decorative mark using your chosen shape and color.
Rendering
3
Position controls placement
Use text-emphasis-position to place marks over or under the text when needed.
Placement
=
✎
Character-level emphasis
Text stands out with culturally appropriate marks without changing font weight or style.
Compatibility
Browser Compatibility
The text-emphasis property is supported in most modern browsers, including the latest versions of Chrome, Firefox, Safari, Edge, and Opera. However, it is always a good practice to test your website across different browsers to ensure compatibility.
✓ Modern browsers · Wide support
Emphasis marks in today’s browsers
Chrome, Firefox, Safari, Edge, and Opera all support text-emphasis in current versions.
95%Modern browser support
Google Chrome99+ · Desktop & Mobile
Full support
Mozilla Firefox46+ · Desktop & Mobile
Full support
Apple Safari7+ · macOS & iOS
Full support
Microsoft Edge99+ · Chromium
Full support
Opera85+ · Modern versions
Full support
Testing tip
Verify emphasis mark placement in Safari and Firefox, especially for mixed Latin and CJK text.
text-emphasis property95% supported
Bottom line:text-emphasis is safe to use for East Asian typography and decorative emphasis in modern projects.
Wrap Up
Conclusion
The text-emphasis property is a powerful tool for adding emphasis marks to your text, enhancing both its readability and visual appeal.
By customizing the style and color of the emphasis marks, you can create unique and engaging text presentations. Experiment with different shapes and colors to see how this property can add a distinct touch to your web projects.