Complete CSS Selector Reference
Insert content after every <p> element:
The :after selector inserts content after the selected element(s).
Use the content property to specify the content to insert.
![]()
The :after selector is supported in all major browsers.
Note: For :after to work in IE8, a <!DOCTYPE> must be declared.
CSS tutorial: CSS Pseudo-elements
CSS Selector Reference: CSS :before selector
Insert content after every <p> element, and style the inserted content:
Complete CSS Selector Reference
Your message has been sent to W3Schools.