color in html code example

Example 1: how to color in html

<h1 style="color: red;">Hello</h1>

Example 2: red css color codes

Following could be the CSS color codes which you can use in your CSS File

1. You can write simply "Red".
2. #FF0000
3. #F00
4. RGB(255, 0, 0)

Example 3: html color codes

<!-- Check these best user friendly html color codes -->
#1ca69d     #e31ce0      #c13e72      #99b34d    #3affb9
#6c7093     #b35ba0      #1b1452

Example 4: html color code

Best page to choose HTML color codes https://htmlcolorcodes.com/

Example 5: color selector html

<input type="color" value="#f6f82" id="colorPicker">

Example 6: color in html

<!-- Color in HTML by inline-css -->
<p style="color: red; background-color: blue;">
  This text is red and the background is blue
</p>

Tags:

Html Example