Home
CSS
CSS Pseudo-class
Tryit: Use :first-child
Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Save Code
Ctrl+Alt+A
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
Use p:first-child
Style any p element that is the first child of any element:
This is some text.
This is some text.
This is some text.
This is some text.
This is some text.
This is some text.