Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> p::before { content: "William Shakespeare-"; background-color: #ccc; color: #666; border: 2px dotted #000; } </style> </head> <body> <h2>::before selector example</h2> <p>"Be or not to be".</p> </body> </html>