HTML
HTML Introduction
HTML Element
HTML Attributes
HTML Heading
HTML Paragraph
HTML Style
HTML Format
HTML Color
HTML Link
HTML Image
HTML Table
HTML List
HTML Symbols
HTML Emojis
HTML Forms
HTML Colors
HTML colors are specified with predefined color names, or with RGB, HEX, HSL, RGBA, or HSLA values.
In HTML, a color can be specified by using a color name:
You can set the background color for HTML elements:
Text Color
You can set the color of text.
<h1 style="color:Tomato;">Hello World</h1>
Border Color
You can set the color of borders:
<h1 style="border:2px solid Tomato;">Hello World</h1>
Color Values
In HTML, colors can also be specified using RGB values, HEX values, HSL values, RGBA values, and HSLA values.
Following is the Example:
<h1 style="background-color:rgb(255, 99, 71);">...</h1>
- Tomato
- Orange
- DogerBlue
- MediumSeaGreen
- Grey
- SlateBlue
- Violet
- LigthGrey