
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to change the text color of an element in HTML?
Use the color attribute in HTML to display the color of the text.
Note − This attribute is not supported in HTML5.
Example
You can try to run the following code to learn how to implement color attribute in HTML −
<!DOCTYPE html> <html> <head> <title>HTML Background Colors</title> </head> <body> <table width = "100%"> <tr> <td> <p><font color="blue">This is demo text.</font></p> </td> </tr> </table> </body> </html>
- Related Questions & Answers
- How to display the background color of an element in HTML?
- How to change the color of links in HTML?
- How to change the text color of Menu item in Android?
- How to change the Foreground Color of Text in C# Console?
- How to change the Background Color of Text in C# Console
- How to change text inside an element using jQuery?
- How to change the font color of a text using JavaScript?
- How to change text cursor color in Tkinter?
- How to change the text color of font in the legend using Matplotlib?
- Change text color based on a brightness of the covered background area in HTML?
- How to Change Link Underline Color using text-decoration-color CSS
- How to change text font in HTML?
- How to change the Text color of Menu item in Android using Kotlin?
- How to change the color of certain words in a Tkinter text widget?
- How can I change the text color with jQuery?
Advertisements