HTML
CSS
PHP
Deno
Examples
Do It Yourself
Blog
Type in your code below
Run
<!DOCTYPE html> <html lang="en"> <head> <style> p::after { content: "The ::after content: I know you don't think CSS can go as long as doing this!"; } </style> </head> <body> <span>The <code>::after</code> element of <p> now has a content with CSS using <code>content</code> property and a string value.</span> <p>The main content</p> </body> </html>
Related Examples
CSS Units String Values Example
CSS Unit String Values Example
CSS Units Relative Values Example