HTML: Colors

This entry is part 19 of 34 in the series HTML

There are 3 ways to specify a particular color in HTML.

You can use color name, RGB value or hexadecimal value.

<!DOCTYPE html>
<html>
<head lang='en'>
    <meta charset='UTF-8'>
    <title>HTML colors</title>
</head>
<body>

<p>Color Name</p>
<hr color='aqua'>
<p>Hexadecimal</p>
<hr color='#FFFF00'>
<p>RGB</p>
<hr color='rgb(255,255,0'>

</body>
</html>

Series Navigation<< HTML: The 16 basic colors
HTML: Background color >>