Horje

Text color using HTML color names

Another way to color your website's text is by using an HTML color name. The HTML code is similar, just replace the Hex code from the previous step with the name of the color you want to use (red in our example). There are 140 named colors to choose from, and we've compiled a list which you can check out here.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>
  <p style="color:red;">Red paragraph text</p>
</body>
</html>

Output should be:

Text color using HTML color names




Type:
html
Category:
Web Tutorial
Sub Category:
HTML HEX Colors
Uploaded by:
Admin