CSS _ pseudo class

Source: Internet
Author: User

CSS pseudo classes are divided into two types: 

1. UI pseudo-class

2. Structured pseudo-classes

UI pseudo class

When the HTML element is in a certain state, the UI pseudo class applies the CSS style. The most common tag of the UI pseudo class is a, and the link pseudo class is used, you can hover over the mouse to change the color and remove the underline Of the text or the prompt information panel.

Link pseudo-class

There are four link pseudo classes.

① Link: Waiting for users to click

② Visited users have clicked

③ Hover

④ Active link being clicked

The following is the link a tag with four pseudo-class delimiters.

 
  

The above colon indicates that this is a pseudo class, and two colons: indicates that it is a new pseudo class in CSS3.

Effect after running according to the preceding CSS rules

The preceding four pseudo classes are not only used for tag a, but also for tag p and h.

 

: Foucs pseudo class

Used to obtain the focus of a form

Updating below

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.