<!DOCTYPE html> <html> <head> <style> span:before { content: '"'; } span:after { content: '"'; } :after { border: 3px solid green; } :first-letter { color: green; } </style> </head> <body> <p><span>Foo</span></p> <p id="p2"><span id="q2"></span></p> </body> </html>