A complete method of setting the text color of hyperlinks in HTML

巴扎黑
Release: 2017-06-03 15:22:40
Original
6950 people have browsed it

There will be a hyperlink in almost every web page. It is the entrance to jump to another page. However, usually the color of the text in the hyperlink is the default. How to change the color to achieve a more beautiful effect? Below I have summarized several articles on how to set the color of hyperlink text:

1.How to set the color of hyperlink text in Html

In order to highlight the hyperlink, Hyperlink text usually uses a different color than other text, and a horizontal line is added at the bottom of the hyperlink text. The hyperlink text of a web page has a default color. By default, the browser uses blue as the color of the hyperlink text, and the color of the visited text becomes dark red. These colors can also be customized in the

tag.

A complete method of setting the text color of hyperlinks in HTML

2.Set the hyperlink font color through html/css

The hyperlink font color setting is set through css, a There are two commonly used link color settings: 1. The initial state color of hyperlink a, 2. The mouse-over color of hyperlink font, and two less commonly used ones: 3. The visited color of hyperlink font

A complete method of setting the text color of hyperlinks in HTML

3.HTML sets the font color of hyperlinks and the font color after clicking

CSS prepares specific tools for some special effects , we call it "pseudo-class". There are several of them that we often use. Below we will introduce in detail the four pseudo-classes that are often used to define link styles.

4.How to change the color of the hyperlink font ?

5.How to change the color of html hyperlink without changing it all at once

After writing the attribute that changes the color of the hyperlink in css, click one The hyperlinks and then the hyperlinks in the entire web page change color. How can we not change the entire page?
Please give me an example and write

in css

The above is the detailed content of A complete method of setting the text color of hyperlinks in HTML. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!