Monday, 4 February 2013

How to create Html Color tags


You may want to have a specific color for the background, text, links, visited links, and active links. In HTML, Colors are coded as a 6 digit hex RGB (red, green, blue) number. A hexadecimal value in the range 00-FF. For example, 000000 is black (no color at all), FFFFFF is white (fully saturated with all three colors). FF0000 is bright red, 0000FF is bright blue, and 00FF00 is pastel green. You must have the "#" sign before the actual code. You can use the attributes of the <BODY> tag to change the color of text, links, vlinks (visited links), and alinks (active links). For example:
<BODY bgcolor="#FFFFFF" text="#000000" 
link="#0000FF" vlink="#800000" alink="#808000">
You can also use the name of the color instead of the corresponding RGB value to indicate some basic colors. For example, "black", "red", "blue", and "green" are all valid for use in place of RGB values. Coloring specific text is done very much like changing the font size. The tag is like:
     <FONT color="code"> text </FONT>
This tag can be combined with the font size. For example:
     <FONT color="#00FF00" size="+3"> text </FONT>

Basic Tags
Character paragraph and positions tags
Styles Tags
Lists Tags
Links Tags
Images Tags

No comments:

Post a Comment