The Sixteen Basic Colors : color « Style Basics « HTML / CSS






The Sixteen Basic Colors

  
<html>
<head>
<title></title>
</head>

<body bgcolor="#000000">

<center>
<h1>The Sixteen Basic Colors</h1>
<table border="1" cellpadding="5"> <!--Table starts-->
    <tr>  <!--Row 1 -->
        <td bgcolor="white">White</td> <!--TD tags define table cells-->
        <td bgcolor="black" style="color: white;">Black</td>
        <td bgcolor="gray">Gray</td>
        <td bgcolor="silver">Silver</td>
    </tr> <!--End of row 1-->
    <tr> <!--Row 2-->
        <td bgcolor="navy" style="color: white;">Navy</td>
        <td bgcolor="blue" style="color: white;">Blue</td>
        <td bgcolor="teal">Teal</td>
        <td bgcolor="aqua">Aqua</td>
    </tr> <!--End of row 2-->
    <tr> <!-- Row 3-->
        <td bgcolor="lime">Lime</td>
        <td bgcolor="green">Green</td>
        <td bgcolor="olive">Olive</td>
        <td bgcolor="yellow">Yellow</td>
    </tr> <!--End of row 3-->
    <tr> <!--Row 4-->
        <td bgcolor="fuchsia">Fuchsia</td>
        <td bgcolor="red">Red</td>
        <td bgcolor="maroon" style="color: white;">Maroon</td>
        <td bgcolor="purple" style="color: white;">Purple</td>
    </tr>  <!--End of row 4-->
</table> <!--End of table-->
</center>


</body>
</html>

   
  








Related examples in the same category

1.Colors
2.Hexadecimal Colors
3.background: lightblue
4.RGB Colors
5.RGB Colors with percentage
6.color: #333333
7.color: blue;
8.color:red
9.color:black; assigns the constant value black to the color property.
10.Use #fff for #ffffff
11.Change color with Javascript
12.CSS Color Chart
13.Browser-Safe Color Chart
14.User-Interface Color Keywords
15.rgb color
16.rgb color with percentage