![]() |
A hexadecimal color is specified with: #RRGGBB, where the RR (red), GG (green) and BB (blue) hexadecimal integers specify the components of the color. Text color using Hex color codesThe most common way of coloring HTML text is by using hexadecimal color codes (Hex code for short). Simply 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. |
<!DOCTYPE html>
<html>
<body>
<p style="color:#FF0000";>Red paragraph text</p>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<p style="color:red;">Red paragraph text</p>
</body>
</html>
Category: | Web Tutorial |
Sub Category: | HTML HEX Colors |
Uploaded by: | Admin |
Read Articlehttps://horje.com/learn/1434/reference