DEV Community

Cover image for This blog post is written entirely in the <head>*
Sebastian Stamm
Sebastian Stamm

Posted on • Edited on

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

*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:

Top comments (8)

Collapse
 
kp profile image
KP

Interesting...but whats the point? :)

Collapse
 
sebastianstamm profile image
Sebastian Stamm

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 Kanoldt

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

Collapse
 
sebastianstamm profile image
Sebastian Stamm

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 :)