Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Role of CSS: first-child Selector
Use the CSS :first-child selector to style every
elements that is the first child of its parent.
Example
You can try to run the following code to implement the :first-child selector
Heading
This is demo text.
This is demo text, with the first child of its parent div.
This is demo text, but not the first child.
Advertisements
