:first-child
Term side of the Card
Topic: Pseudo Classes
Unit title: :first-child
Categories: Pseudo-class
Explanation side of the Card
Explanation: The pseudo-class that targets the first child element of a parent. It's used to apply styles specifically to the first item in a list, the first paragraph in a section or any other first child element, making it stand out from its siblings.
Browser compatibility:
- The chrome browser supports this feature starting from version 4
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 3
- The safari browser supports this feature starting from version 3.1
Availability: