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

What are the css link states?

王林
Release: 2020-05-30 16:10:25
Original
2842 people have browsed it

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!

Related labels:
css
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template