Self-Printing Code Block

a quine, sort of

This code block contains itself

Everything below is the code that drew it, including the line that put it here.

self-printing-code-block.html

How it works. When the page loads, it copies its own markup, then writes that copy into the empty block above. The block was empty at the moment of the copy, so the copy shows it empty too. Artifacts are plain HTML like this. A React one adds a pinned React script from a CDN and mounts a component into a div.