- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- 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>
Advertisements