Hacker News new | ask | show | jobs
by ibudiallo 1695 days ago
That's fun. I actually used a similar method to build this page[1]. (see page source). I used script tags for the content.

[1]: https://idiallo.com/nobot.php

Edit: All HTML tags are a CSS rule away to becoming visible.

1 comments

Update: I've built this page many years ago, and one of the issues was that I couldn't nest script tags. The reason is everything inside the script tag is considered plain text. So having a hyperlink inside a paragraph was impossible.

However, I just found out that you can create nested elements in the script tags if via javascript. So something like script1.appendChild(script2) works and renders correctly. The Possibilities!!!