Pseudo-éléments CSS
selector::pseudo-element {
property: value;
}
naly moslih
selector::pseudo-element {
property: value;
}
h2::first-letter {}
p::first-line {}
p::selection {background-color: red;}
::after / ::before
As a matter of fact pseudo element is used to work on written items inside html
element.
This given pseudo element makes the color of first line after h1 in red color.
h1::first line{
color:red;
}
YOU CAN LEARN MORE ABOUT SIBLINGS AND ADJACENT SIBLINGS TOOO!
selector:pseudo-class {
property: value;
}