

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are CSS pseudo-classes
CSS pseudo-classes are used to add special effects to some selectors. You do not need to use JavaScript or any other script to use those effects.
The most commonly used pseudo-classes are −
Value | Description |
---|---|
:link | Use this class to add special style to an unvisited link. |
:visited | Use this class to add special style to a visited link. |
:hover | Use this class to add special style to an element when you mouse over it. |
:active | Use this class to add special style to an active element. |
:focus | Use this class to add special style to an element while the element has focus. |
:first-child | Use this class to add special style to an element that is the first child of some other element. |
:lang | Use this class to specify a language to use in a specified element. |
- Related Questions & Answers
- Pseudo-classes and CSS Classes
- Pseudo-classes and all CSS Classes
- Anchor Pseudo-classes in CSS
- Working with CSS Pseudo Classes
- Pseudo-elements and CSS Classes
- Commonly used pseudo-classes in CSS
- What is Pseudo-class in CSS
- What is Pseudo-element in CSS
- CSS Pseudo Elements
- What are Java classes?
- CSS :after pseudo-element
- CSS :before pseudo-element
- Difference Between Pseudo-Class and Pseudo-Element in CSS
- What are the classes in C#?
- What are collection classes in C#?
Advertisements