Home >Web Front-end >HTML Tutorial >css pseudo-element selector_html/css_WEB-ITnose
Pseudo-element selector: The effect of a pseudo-element can be achieved by adding an actual element. There are the following four pseudo-element selectors in CSS:
:first- line: is the first line of text of an element. Use styles;
· :first-letter: Use styles for the first letter or first word of text in an element;
· :before: Insert some content before an element;
· :after: Insert some content after an element;
1111
2222
333333< ;/p>
444444