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



Single Articles
Text color using Hex color codesHTML HEX Colors
Text color using HTML color namesHTML HEX Colors


Related Articles
What is HTML HEX Colors HTML HEX Colors
How to create HTML HEX Color Values HTML HEX Colors
How to create HTML Shades of Gray HTML HEX Colors

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