Anders Tornblad, web developer

I'm all about the web

"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