loading...
Cover image for This blog post is written entirely in the <head>*

This blog post is written entirely in the <head>*

sebastianstamm profile image Sebastian Stamm Updated on ・1 min read

*Unfortunately, dev.to embeds blog posts in the body, so you need to click here to enjoy the true <body>-less experience. I also embedded it below for your convenience:

Discussion

pic
Editor guide
Collapse
kp profile image
KP

Interesting...but whats the point? :)

Collapse
sebastianstamm profile image
Sebastian Stamm Author

Good question! I think the most useful thing of these hacks is the visible, contenteditable style tag. I have a web app where the users can apply their own styling by providing a user-styles.css file.

With this trick they could write it on the page itself and immediately see the effects.

Collapse
kp profile image
KP

Gotcha!

Collapse
lmolivera profile image
Lucas Olivera

Very unexpected behaviour of head, really interesting.

Collapse
lazar profile image
Lazar

Surprisingly cool!

Collapse
5422m4n profile image
Sven Assmann

not sure how big G likes that -> SEO wise I mean. 🤓

Collapse
sebastianstamm profile image
Sebastian Stamm Author

Oh, interesting thought! I honestly don't know. It has a title and description, so that's good, but it literally has nothing else. So maybe Google thinks it's a blank page?

Collapse
chrisachard profile image
Chris Achard

Huh! never knew that was possible... what an interesting experiment :)