Edit This Code:
See Result »
<!DOCTYPE html> <html> <head> <style> h1::after { content: url(smiley.gif); } </style> </head> <body> <h1>This is a heading</h1> <p>The ::after pseudo-element inserts content after the content of an element.</p> <h1>This is a heading</h1> <p><b>Note:</b> IE8 supports the content property only if a !DOCTYPE is specified.</p> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss_after by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 13 Mar 2016 11:02:57 GMT --> </html>
Result: