HTML to remove HTML hyperlink underline

Source: Internet
Author: User

Remove HTML hyperlink underline

2012-08-30 17:31:00| Category: css| Report | Font size Subscription

We can use CSS syntax to control the form and color changes of hyperlinks.

Let's do a link like this: The hyperlink text is not underlined when clicked, it appears blue, the link text appears red when the mouse is on the link, and when the link is clicked, the link is not underlined and appears green.

The implementation method is simple, with the following CSS syntax controls between the

<style type= "Text/css" >
<!--
a:link {Text-decoration:none;color:blue}
a:active {Text-decoration:blink}
a:hover {text-decoration:underline;color:red}
a:visited {Text-decoration:none;color:green}
-
</style>

which
A:link refers to a normal link that has not been visited;
A:active refers to the link being point;
A:hover refers to the mouse on the link;
A:visited means a link that has been visited;
Text-decoration is the meaning of the text modification effect;
The None parameter indicates that the hyperlink text does not appear underlined;
The underline parameter indicates that the text of the hyperlink is underlined

Similarly, if none is replaced with Overline, the hyperlink text is underlined, and Line-through is added to the hyperlink text with the strikethrough, blink causes the text to blink.

HTML to remove HTML hyperlink underline

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.