HTML color attribute: The HTML color attribute can be applied to an HTML element using CSS. Any user can choose the colors according to his comfort and apply on your webpage.
HTML color attribute
This HTML color attribute consists of text, border, background as elements. It cannot be used in HTML5.
Browsers Support
The HTML color attribute can be supported by a different type of browsers. They are as follows:
- Chrome
- Firefox
- Internet Explorer
- Safari
- Opera
Example:
<!DOCTYPE html> <html> <body> <h1 style="border: 2px solid Tomato;">Freshersnow</h1> <h1 style="border: 2px solid DodgerBlue;">Python tutorial</h1> <h1 style="border: 2px solid Violet;">C Tutorial</h1> </body> </html>
Output: