Code has been added to clipboard!

CSS Text Emphasis

Reading time 1 min
Published Aug 8, 2017
Updated Sep 27, 2019

Emphasizing text in CSS

By using the CSS text-emphasis property, you can draw attention to textual elements (letters, numbers, but not spaces or control characters):

Example
p {
    text-emphasis: filled sesame;
    -webkit-text-emphasis: filled sesame;
}

The text emphasis symbols are about a half the font size. It can also affect line height.

How to use CSS emphasis

CSS text-emphasis is actually a shorthand for two subproperties:

  • text-emphasis-style
  • text-emphasis-color

Therefore, the syntax is similar to that of many other shorthands:

text-emphasis: style color;

The CSS text emphasis style can be defined in:

  • Keywords: none (the default value), filled, open, dot, circle, double-circle, triangle, or sesame
  • A string containing one character that will be used as the CSS emphasis symbol

You can define the CSS text emphasis color using a name, RGB, RGBA, HEX, HSL or HSLA value. If you don't specify the color, CSS text emphasis will use the color of the text.

Tip: to get the value for the exact color tone you need, use the Pickeristic color picker.

Browser support

Chrome
25+
Edge
-
Firefox
46+
IE
-
Opera
15+
Safari
6.1+

Mobile browser support

Chrome
25+
Firefox
46+
Opera
14+
Safari
7+
Tutorial
CSS3 Features
Syntax
Classes
ID Selectors
Attribute Selectors
Stylesheets
Inline
Internal
External
Box Model
Children Selectors
Pseudo Classes
Pseudo Elements
Variables
Counters
Text
Fonts
Web Fonts
Backgrounds
Background Images
Colors
Gradients
Opacity / Transparency
Shadow Effects
Transitions
Tooltip
Transform
Animations
Layout — Display
Layout — Position
Layout — Float
Layout — Clear
Layout — Horizontal & Vertical Align
Multiple Columns
Introduction
Responsive Web Design — Viewport
Responsive Web Design — Grid View
Responsive Web Design — Media Queries
Responsive Web Design — Flexbox Layout
Responsive Web Design — Images
Responsive Web Design — Videos
Borders
Margin
Padding
Width
Height
Outline
Links
Lists
Tables
Dropdown Menu
Navigation Bar
Images
Image Gallery
Border Images
Forms
Rounded Corners
Buttons
Box-Sizing
Selector Reference
Pagination Examples
Code Examples
CSS3 Browser Support Reference
Functions Reference
Speech Module Reference
Units
Web Safe Font Combinations
Cheat Sheet
:hover
@font-face
@keyframes
@media
align-content
align-items
align-self
all
animation
backface-visibility
background
background-clip
background-color
background-image
background-origin
background-position
background-size
border
border-image
border-radius
border-style
box-shadow
box-sizing
color
columns
filter
flex
flex-basis
flex-direction
flex-flow
flex-grow
flex-shrink
flex-wrap
font
font-family
font-size
font-size-adjust
font-stretch
font-style
font-weight
hanging-punctuation
justify-content
line-height
margin
offset
opacity
order
outline
overflow
padding
perspective
position
resize
tab-size
text-align
text-decoration
text-emphasis
text-transform
text-shadow
transform
transition-property
translate
vertical-align
word-break
word-wrap
z-index