In HTML, a color can be specified by using a color name: |
<h1 style="background-color:Tomato;">Tomato</h1>
<h1 style="background-color:Orange;">Orange</h1>
<h1 style="background-color:DodgerBlue;">DodgerBlue</h1>
<h1 style="background-color:MediumSeaGreen;">MediumSeaGreen</h1>
<h1 style="background-color:Gray;">Gray</h1>
<h1 style="background-color:SlateBlue;">SlateBlue</h1>
<h1 style="background-color:Violet;">Violet</h1>
<h1 style="background-color:LightGray;">LightGray</h1>
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1 style="background-color:Tomato;">Tomato</h1>
<h1 style="background-color:Orange;">Orange</h1>
<h1 style="background-color:DodgerBlue;">DodgerBlue</h1>
<h1 style="background-color:MediumSeaGreen;">MediumSeaGreen</h1>
<h1 style="background-color:Gray;">Gray</h1>
<h1 style="background-color:SlateBlue;">SlateBlue</h1>
<h1 style="background-color:Violet;">Violet</h1>
<h1 style="background-color:LightGray;">LightGray</h1>
</body>
</html>
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_color_names
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 |
Example of HTML Color Names | HTML Colors |
Full Example of HTML Color Names | HTML Colors |
Read Full: | HTML Colors |
Category: | Web Tutorial |
Sub Category: | HTML Colors |
Uploaded: | 1 year ago |
Uploaded by: | Admin |
Views: | 22 |