Share this Page URL

Designing Forms > Aligning Form Controls Using Tables - Pg. 141

136 Learn HTML 4 In a Weekend Use RGB hex codes to set colors for the initial H2 and H3 elements (see Figure 4.22): <h2><a name="safety"></a><font color="#336699">Egg Safety and Quality</font></h2> <p>All foods have the capability of carrying microorganisms that can cause disease or illness. Common symptoms of food- borne illness include nausea, vomiting, diarrhea, cramps, headache, and fever. While the risk of getting sick from eat- ing eggs is relatively low, following are some tips for reducing the likelihood of contracting food-borne illness from eating eggs:</p> <h3><a name="salmonella"></a><font color="#cc6600">Salmonella</font></h3> CAUTION A common error is to omit the "#" character when setting colors using RGB hex codes. Some browsers (such as Internet Explorer) actually let you get away with doing that, but other browsers might completely ignore the color code if the leading "#" character is missing. Showing you how to count in hexadecimal or explaining how an RGB color scheme works is beyond the scope of this book. Quite frankly, unless you already know how to count in hexadecimal and have an under- standing of RGB color theory, the only practical way to choose the hexa- decimal color code you want is to use some kind of color chart, wheel, or Figure 4.22 The initial H2 and H3 elements are set to display in "slate blue" (#336699) and "rust orange" (#cc6600) colors, respectively. color= "#336699" color= "#cc6600"