Question:
Link color coding in html...help!?
2008-02-15 11:55:48 UTC
Okay, so I want one set of links to be as I have below. I want them black and underlined and I want the underline to go away when the mouse moves over. Since I want other links to act differently, I am trying to apply a style sheet. However, it is now working. Here it is:

a.a1 a:visited {
text-decoration: underline;color:#000000;
}
a.a3 a:hover {
text-decoration: none;color:#000000;
}
a.a4 a:active {
text-decoration: underline;color:#000000;
}

Then, I would apply in code as follows:
Four answers:
2008-02-15 12:07:04 UTC
Say that you wanted the word "color" to be underlined and black. WITHOUT putting the spaces in between the <'s and letters, though there is a space between the words "font" and "color", do this:

< u >< font color=black > color [[<--that is where you'd put your link code and whatever other text you want underlined/black]] < /font >< /u >

The underline won't disappear [[sorry, I don't know how to do that]], but it will come up black and underlined! :)

Hope this helped.
markey
2016-12-05 17:05:43 UTC
HTML code's are very complicated to appreciate. the main suitable thank you to get a information of ways HTML (tags) function may be, to get carry of a 30 day loose version application HTML kit and the applying kit i exploit is Dreamweaver. that's like magic!
A Well Lit Garden
2008-02-15 13:41:58 UTC
Write your CSS code as follows:



a.a1 {

text-decoration: underline;color: "black";

}

a.a1:visited {

text-decoration: underline;color: "black";

}

a.a1:hover {

text-decoration: none;color: "black";

}



Then apply to your code as follows:



Label





Use only one class for each style of anchor, not one per state of the anchor class. The multiple classes is what is confusing the browser. Use another class to define another style of anchor.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...