Horje
How to create HTML Text Color

You can set the color of text:


Example of HTML Text Color

<h3 style="color:Tomato;">Hello World</h3>

<p style="color:DodgerBlue;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>

<p style="color:MediumSeaGreen;">Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>

Full Example of HTML Text Color

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h3 style="color:Tomato;">Hello World</h3>

<p style="color:DodgerBlue;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>

<p style="color:MediumSeaGreen;">Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>

</body>
</html>

Output should be:

Full Example of HTML Text Color





Related Articles
What is HTML Colors HTML Colors
How to create HTML Color Names HTML Colors
How to create HTML Background Color HTML Colors
How to create HTML Text Color HTML Colors
How to create HTML Border Color HTML Colors
How to create HTML Color Values HTML Colors

Single Articles
Example of HTML Text ColorHTML Colors
Full Example of HTML Text ColorHTML Colors

Read Full:
HTML Colors
Category:
Web Tutorial
Sub Category:
HTML Colors
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
55


Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_color_text

Share on: