Home  >  Article  >  Web Front-end  >  What are the css link states?

What are the css link states?

王林
王林Original
2020-05-28 16:13:502721browse

What are the css link states?

First of all, the link style can use any CSS properties (such as color, font, background, etc.).

Links can have different statuses, as follows:

a:link - normal, unvisited link

a:visited - link that has been visited by the user

a:hover - When the user mouses over the link

a:active - The moment the link is clicked

(Video tutorial recommendation: css video tutorial)

Simple example:

What are the css link states?

Normal rendering:

What are the css link states?

Rendering after mouse placement:

What are the css link states?

What are the css link states?

If we want to remove the underline of the link, we can use the tetx-decoration attribute.

What are the css link states?

Recommended tutorial: CSS basic tutorial

The above is the detailed content of What are the css link states?. 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