Background color in html code
- how to change color in html code
- how to change background color in html code
- how to change text color in html code
- how to change font color in html code
How to change font style in html...
Text color using Hex color codes
The most common way of coloring HTML text is by using hexadecimal color codes (Hex code for short).
How to change text color in html without cssSimply add a style attribute to the text element you want to color – a paragraph in the example below – and use the color property with your Hex code.
HTML
Demo on CodePen
Don't have a Hex code?
Not to worry, use our color picker to browse millions of colors with Hex color codes, and so much more.
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).
How to change text color in html css
There are 140 named colors to choose from, and we've compiled a list which you can check out here.
HTML
Demo on CodePen
Text color using RGB color values
Using RGB values is all the rage these days, but it's just as easy as Hex codes or color names.
Insert your RGB values within the rgb() parameter following the color property. You can use our color picker to get RGB values in additio
- how to change page color in html code
- how to change font color in html codehs