Home  >  Article  >  Web Front-end  >  How to change the font color of hyperlinks

How to change the font color of hyperlinks

藏色散人
藏色散人Original
2021-03-16 13:53:119950browse

How to modify the font color of hyperlinks: First create a new html code file; then set it to the desired color by adding a color style to the hyperlink.

How to change the font color of hyperlinks

The operating environment of this article: windows7 system, HTML5&&CSS3 version, DELL G3 computer.

First we need to create a new html interface and set the hyperlink information. You can set a few more to compare the final effect.

How to change the font color of hyperlinks

Then we find a browser on the desktop and open the html page. At this time, the hyperlink font is displayed in black.

How to change the font color of hyperlinks

Select one of the hyperlinks and set the style to the desired color. Open the HTML page with the browser again and you will see that the set hyperlink font changes color.

How to change the font color of hyperlinks

When there are many hyperlinks whose colors need to be changed, you can add style nodes to the head to uniformly set the colors of the hyperlinks.

How to change the font color of hyperlinks

Recommended study: "css video tutorial"

The above is the detailed content of How to change the font color of hyperlinks. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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