Wednesday, September 14, 2011

How do you change the underline color and the link color with html ?

Does anyone know the code to change my link color ? and when you underline a word (ex. %26lt;u%26gt;text%26lt;/u%26gt; ] how do you change the color of the line under the word ? Sorry if its confusing..How do you change the underline color and the link color with html ?To change link colors...



%26lt;style%26gt;

a

{

color:green;

}



a:hover;

{

color:red;

}

%26lt;/style%26gt;



Replace green/red with the color of your choice. Put this in your %26lt;head%26gt; section.



You cannot have an underline color different from the color of the text above it.How do you change the underline color and the link color with html ?yes :)



%26lt;style%26gt;A: link:

{color:COLORHERE;

}



A: hover:

{color:COLORHERE; text-decoration:underline;

}%26lt;/style%26gt;