Anders Tornblad

All about the code

"Hello, World!" in CSS

How to do "Hello, World!" in CSS.

html::before { content: 'Hello, World!' }

This is a very unorthodox use of CSS. Combined with an empty valid HTML document, this will produce an output in any browser. I made a pen for you.

For more "Hello, World!" examples, go to the Hello World category.

Add a comment