HTML+CSS Easy t...LOGIN

HTML+CSS Easy to Get Started with Pseudo-Class Selector

Pseudo-class selector

Why is it called a pseudo-class selector? It allows setting of tags (some state of the tag) that do not exist in html

Grammar: a:hover{

                                                                                                                                                                       #Next Section

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>伪类选择器</title> <style type="text/css"> div:hover{ color:red; } </style> </head> <body> <div>中华民族</div> </html>
submitReset Code
ChapterCourseware