\\\\n
\\\\n\\\\n \\\\n\\\\n \\\\n \\\\n
\\\\n \\\\n
\\\\n \\\\n
\\\\n \\\\n \\\\n \\\\n
\\\\n \\\\n \\\\n\\\\n
\\\\n\\\\n \\\\n\\\\n \\\\n // ... (Original scripts remain unchanged) ...\\\\n
\\\\n CSS3 text-emphasis property
\\\\n\\\\n
\\\\n\\\\n \\\\n
\\\\n
\\\\n
\\\\n\\\\n \\\\n
\\\\n
\\\\n
\\\\n
\\\\n Example
\\\\nAdd emphasis marks to text:
\\\\np {\\\\n text-emphasis: filled red;\\\\n}\\\\n\\\\n \\\\n \\\\n
Browser Support
\\\\nThe numbers in the table indicate the first browser version that supports this property.
\\\\n| property | \\\\n\\\\n | \\\\n | \\\\n | \\\\n | \\\\n |
|---|---|---|---|---|---|
text-emphasis | \\\\n 6.0 | \\\\nNot supported | \\\\n46.0 | \\\\nNot supported | \\\\n7.0 | \\\\n
\\\\n
Definition and Usage
\\\\ntext-emphasis propertyIs the shorthand property for the following properties:
- \\\\n
- text-emphasis-style \\\\n
- text-emphasis-color \\\\n
text-emphasis propertyApplies special emphasis marks to the element's text to draw attention. The shape of the marks can be a circle, dot, double circle, or a specific character (e.g., an exclamation mark).
Note: text-emphasis propertyAffects the layout of text but does not affect line height. Therefore, emphasis marks may overlap with lines above or below.
\\\\n
CSS Syntax
\\\\ntext-emphasis: text-emphasis-style text-emphasis-color|initial|inherit;\\\\n\\\\n propertyValue
\\\\n| Value | \\\\nDescription | \\\\n
|---|---|
text-emphasis-style | \\\\n Specify the shape of emphasis marks. Possible values:noneγfilledγopenγdotγcircleγdouble-circleγtriangleγsesame or stringγ | \\\\n
text-emphasis-color | \\\\n Specifies the color of the emphasis marks. | \\\\n
initial | \\\\n Set this property to its default value. | \\\\n
inherit | \\\\n Inherit this property from its parent element. | \\\\n
\\\\n
More Examples
\\\\nExample 1
\\\\nUse different emphasis styles:
\\\\np.a {\\\\n text-emphasis: filled red;\\\\n}\\\\np.b {\\\\n text-emphasis: open red;\\\\n}\\\\np.c {\\\\n text-emphasis: dot red;\\\\n}\\\\np.d {\\\\n text-emphasis: circle red;\\\\n}\\\\np.e {\\\\n text-emphasis: double-circle red;\\\\n}\\\\np.f {\\\\n text-emphasis: triangle red;\\\\n}\\\\np.g {\\\\n text-emphasis: sesame red;\\\\n}\\\\np.h {\\\\n text-emphasis: filled "β
" red;\\\\n}\\\\n\\\\n \\\\n Example 2
\\\\nUse the shorthand property to set the position of emphasis marks:
\\\\np {\\\\n text-emphasis: filled red;\\\\n text-emphasis-position: over right;\\\\n}\\\\n\\\\n \\\\n \\\\n
\\\\n
- \\\\n
- CSS3 Text effects \\\\n
YouTip