Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the four pseudo-classes of the a tag of CSS

Shulou Source: shulou.com Published: 2022-06-03 17:30:42 10月03日 Update

This article introduces the relevant knowledge of "what are the four pseudo-classes of CSS a tag?" in the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The a tag has four pseudo classes:

1.: link, "Link": before the hyperlink is clicked.

2.: visited, "visited": after the link has been visited.

3.: hover, "hover": when the mouse is over the label.

4.: active, "activate": when the mouse clicks on the tab, but does not let go.

In css, four states must be written in a fixed order:

A:link 、 a:visited 、 a:hover 、 a:active

If it is not in order, it will be invalidated. "Love and hate Code": love hate. You must love before you hate.

Note: when writing a:link and a:visited pseudo-classes, either write at the same time or not at the same time. If you only write an attribute and a:link attribute, it is not standard.

This is the end of the content of "what are the four pseudo-classes of CSS a tag?" Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Tags links content at the same time attributes time more knowledge or order mouse utility learning next two guidelines dilemmas reality situation articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology vpn Docker Shulou Tech Info MariaDB