DEV Community

goodmuyis
goodmuyis

Posted on

How to write "Hello World!" in pure css

It sound uselessly useful to know it is possible to write "Hello World!" in Vanilla CSS, yea just like JavaScript boys are pulling up their ego this days. 
CSS is the husband of all web technology scripting or coding language, without css no matter how hot headed you are in JS, Python, and some other stuff that cause you to spend time behind your screen and keyboard, you ain't do anything. Unless you are CSSing you ain't working at all. #CSSRule

And so what!…

where is the hello world? Yes I know you are waiting.

Am going to keep it simple. Since most hello world line of code are in their simplex form, html tags are 403 here except the <style> of course you don't want to drive yourself without a vehicle.

Here you have it, cut and paste it in your text editor saving as regular.html OR just check the fiddle here

<style>
body:before{
content: "Hello Word!";
}
</style>

This should be one of the greatest discovery of 21st century, therefore make sure you let your friends know about this.
Thanks for the precious time invested to learn new discovery.

Top comments (0)