CSS text-emphasis Property

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 4 Examples
Typography

What You’ll Learn

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.

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.

📝 Syntax

The text-emphasis property is a shorthand for setting text-emphasis-style and text-emphasis-color. The basic syntax is as follows:

syntax.css
element {
  text-emphasis: emphasis-style emphasis-color;
}
  • emphasis-style — Defines the shape and fill of the emphasis mark.
  • emphasis-color — Defines the color of the emphasis mark.

Basic Example

text-emphasis.css
p {
  text-emphasis: dot red;
}

Syntax Rules

  • Write the style first, then the color: text-emphasis: circle #2563eb;
  • Use none to remove emphasis marks.
  • Omit the color to inherit from the element’s color value.
  • Use longhand properties when you only need to change style or color separately.

Related Properties

  • text-emphasis-style — sets the mark shape or custom symbol
  • text-emphasis-color — sets the mark color
  • text-emphasis-position — sets whether marks appear over or under text

🎯 Default Value

The default value of the text-emphasis property is none, which means no emphasis marks are applied to the text.

⚡ Quick Reference

QuestionAnswer
Default valuenone
Shorthand fortext-emphasis-style and text-emphasis-color
Red dot markstext-emphasis: dot red;
Common shapesdot, circle, sesame, triangle
InheritedYes
AnimatableColor only

💎 Property Values

The text-emphasis property accepts a style keyword or custom string, plus an optional color value.

Emphasis Style

ValueExampleDescription
nonetext-emphasis: none;No emphasis mark is drawn.
dottext-emphasis: dot red;Filled dot marks above or below each character.
circletext-emphasis: circle blue;Open circle marks around each character.
double-circletext-emphasis: double-circle;Two concentric circle marks.
triangletext-emphasis: triangle;Small triangle marks.
sesametext-emphasis: sesame;Sesame seed-shaped marks common in Japanese typography.
Custom stringtext-emphasis: "*" orange;Uses a custom symbol as the emphasis mark.

Emphasis Color

ValueExampleDescription
Named colortext-emphasis: dot red;Uses a CSS color name.
Hex colortext-emphasis: circle #2563eb;Uses a hexadecimal color.
RGB or HSLtext-emphasis: dot hsl(0 72% 50%);Uses functional color notation.
CSS variabletext-emphasis: dot var(--accent);Uses a reusable theme color.
dot red circle sesame triangle "*"

When to Use text-emphasis

text-emphasis is the right choice when character-level marks communicate emphasis better than bold or italic:

  • East Asian content — Common in Japanese, Chinese, and Korean educational or editorial layouts.
  • Study notes — Mark important vocabulary words in language-learning pages.
  • Editorial design — Add decorative emphasis without changing font weight.
  • Multilingual sites — Match typography conventions for each language section.

👀 Live Preview

Compare different text-emphasis style and color combinations:

Dot emphasis marks in red.
Circle emphasis marks in blue.
Sesame emphasis marks in green.
Triangle emphasis marks in purple.
Custom asterisk emphasis marks.

Examples Gallery

In this example, we’ll apply a dot emphasis mark to a paragraph of text in red color, then explore more emphasis patterns.

📜 Basic Emphasis Marks

Apply built-in emphasis shapes with a color to highlight important text.

Example 1 — Dot emphasis in red

In this example, we’ll apply a dot emphasis mark to a paragraph of text in red color.

index.html
<style>
  p {
    text-emphasis: dot red;
  }
</style>

<h1>Text with Emphasis Mark</h1>
<p>This paragraph has an emphasis mark applied to it.</p>
Try It Yourself

How It Works

The browser draws a small red dot above or below each character in the paragraph.

Example 2 — Circle emphasis marks

Use open circle marks with a brand color for vocabulary highlights.

circle-emphasis.css
.vocab {
  text-emphasis: circle #2563eb;
  font-size: 1.125rem;
}
Try It Yourself

How It Works

Circle marks create a lighter visual emphasis than filled dots while still marking every character.

🌍 Typography Use Cases

Use sesame marks for Japanese-style emphasis and custom symbols for creative layouts.

Example 3 — Sesame marks for Japanese-style text

Sesame marks are a traditional emphasis style often seen in Japanese educational materials.

sesame-emphasis.css
.jp-note {
  text-emphasis: sesame #059669;
  text-emphasis-position: over;
}
Try It Yourself

How It Works

Sesame-shaped marks appear over each character. Combine with text-emphasis-position for precise placement.

Example 4 — Custom symbol emphasis

Pass a string value to use your own symbol as the emphasis mark.

custom-emphasis.css
.star-emphasis {
  text-emphasis: "*" #ea580c;
}
Try It Yourself

How It Works

The browser repeats the custom symbol above or below each character in the element.

♿ 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.

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.

emphasis-set.css
.highlight-term {
  text-emphasis-style: dot;
  text-emphasis-color: #dc2626;
  text-emphasis-position: under;
}

🧠 How text-emphasis Works

1

You choose style and color

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.

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 Chrome 99+ · Desktop & Mobile
Full support
Mozilla Firefox 46+ · Desktop & Mobile
Full support
Apple Safari 7+ · macOS & iOS
Full support
Microsoft Edge 99+ · Chromium
Full support
Opera 85+ · Modern versions
Full support

Testing tip

Verify emphasis mark placement in Safari and Firefox, especially for mixed Latin and CJK text.

text-emphasis property 95% supported

Bottom line: text-emphasis is safe to use for East Asian typography and decorative emphasis in modern projects.

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.

💡 Best Practices

✅ Do

  • Use text-emphasis for East Asian language content and study materials
  • Start with simple shapes like dot or sesame
  • Pair with text-emphasis-position when placement matters
  • Keep mark colors readable against the background
  • Use semantic HTML for meaningful emphasis

❌ Don’t

  • Replace <em> or <strong> with marks alone
  • Mark long paragraphs entirely unless it is intentional
  • Assume marks will be announced by screen readers
  • Forget to test mixed-language content in multiple browsers

Key Takeaways

Knowledge Unlocked

Five things to remember about text-emphasis

Use these points when adding character-level emphasis marks.

5
Core concepts
02

dot red

Quick start.

Example
🌾 03

sesame

Japanese style.

Shape
🔁 04

Inherited

Flows to children.

Cascade
05

Semantic HTML

Keep meaning clear.

A11y

❓ Frequently Asked Questions

text-emphasis adds decorative emphasis marks to each character in text. It is commonly used in East Asian typography to highlight important words.
The default is none, which means no emphasis marks are drawn on the text.
Yes. text-emphasis is shorthand for text-emphasis-style and text-emphasis-color in that order.
Use it for East Asian language content, study notes, or decorative emphasis where marks above or below characters improve readability.
Built-in shapes include dot, circle, double-circle, triangle, and sesame. You can also supply a custom string symbol.

Practice in the Live Editor

Open the HTML editor and try text-emphasis: dot red; on a paragraph.

HTML Editor →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

5 people found this page helpful