--- title: text-emphasis-color slug: Web/CSS/text-emphasis-color tags: - CSS - Colores HTML - Decoración de Texto CSS - Estilizando HTML - Estilos CSS - Propiedad CSS - Referencia - text-decoration-color - Énfasis de Texto translation_of: Web/CSS/text-emphasis-color ---
La propiedad CSS text-emphasis-color
(que podría traducirse como color del texto con énfasis) define el color de las marcas de énfasis. Este valor también puede definirse usando el atajo {{cssxref("text-emphasis")}}
/* Valor inicial*/ text-emphasis-color: currentColor; /* <color> */ text-emphasis-color: #555; text-emphasis-color: blue; text-emphasis-color: rgba(90, 200, 160, 0.8); text-emphasis-color: transparent; /* Valores globales */ text-emphasis-color: inherit; text-emphasis-color: initial; text-emphasis-color: unset;
{{cssinfo}}
<color>
currentColor
(color actual).h3 { text-emphasis-color: #555; text-emphasis-style: "*"; }
<p>Este es un ejemplo:</p> <h3>Esto está marcado con énfasis!</h3>
{{EmbedLiveSample("Examples", 450, 100)}}Ejemplo incrustado en vivo
Especificaciones | Estado | Comentario |
---|---|---|
{{SpecName('CSS3 Text Decoration', '#text-emphasis-color-property', 'text-emphasis')}} | {{Spec2('CSS3 Text Decoration')}} | Initial definition |
{{Compat("css.properties.text-emphasis-color")}}