CSS ::after Selector Last Updated : 29 Aug, 2024 Comments Improve Suggest changes Like Article Like Report ::after selector is used to add the same content multiple times after the content of other elements. This selector is the same as ::before selector. Syntax:::after{ content:}Below HTMl/CSS code shows the functionality of ::after selector : HTML <!DOCTYPE html> <html> <head> <style> p::after { content: " - Remember this"; background-color: blue; } </style> </head> <body> <h3>After Selector</h3> <p>User ID: @dmor1</p> <p>Name: dharam</p> </body> </html> Output: Supported BrowsersGoogle Chrome 1.0Edge 12.0Firefox 1.5Safari 4.0Opera 7.0Note: Opera 4-6 supports with single-colon.(:after) Comment More info V Vishal_Khoda Follow Improve Article Tags : Misc Web Technologies CSS CSS-Selectors Explore CSS Introduction 3 min read CSS Syntax 2 min read CSS Selectors 7 min read CSS Comments 2 min read CSS Colors 5 min read CSS Borders 5 min read CSS Margins 4 min read CSS Height and Width 4 min read CSS Outline 4 min read CSS Fonts 4 min read Like