Learn CSS text-decoration-color Property in Simple Words with Examples
CSS text-decoration-color Property
This Blog You Will Learn ஃ CSS text-decoration-color Property
ஃ CSS text-decoration-color Property
ஃ Syntax
ஃ Structure Diagram
ஃ Syntax
ஃ Structure Diagram
ஃ Example
ஃ Output
ஃ Example
ஃ Output
How to Change Underline Color in CSS Using text-decoration-color
The CSS text-decoration-color property is used to specify the color of text decoration lines such as underline, overline, and line-through. By default, when a text decoration is applied, the line takes the same color as the text itself.
Syntax:
ஃ structure diagram examples
CSS text-decoration-color Property
Example
How to Customize Text Decoration Color in CSS (Beginner Tutorial
Explain Program
<!Doctype html> → browser this is an HTML document
<html> → Root element of the webpage
<head> → Contains metadata and CSS style
<style> → Internal CSS is written
Step 2]
CSS Section
P ➡ Selects all <p> tag paragraph elements.
text-decoration:underline; ➡ Add underline to paragraph text.
text-decoration-color: red; ➡ Changes underline color to red.
h3 ➡ Selects all <h3> headings.
text-decoration:underline; ➡ Add underline to paragraph text.
text-decoration-color: red; ➡ Changes underline color to blue.
Step 3]
closing the Tag </style> </head>
</style> </head>
Step 4]
<body> section (HTML Structure)
- <h1> ➡ heading.
- <h3> ➡ heading blue underline (apply css rule)
- <p> ➡ This paragraph red underline.
Step 5]
</body> </html>
Post a Comment