Horje
How to create HTML Color Names

In HTML, a color can be specified by using a color name:


Example of HTML Color Names

<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>

Full Example of HTML Color Names

In HTML, a color can be specified by using a color name:
index.html
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>

Output should be:

Full Example of HTML Color Names
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_color_names





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 Color NamesHTML Colors
Full Example of HTML Color NamesHTML Colors

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



Share on: