For the curious, this is called a quine, and it's a fun challenge in every language, to write on.
Re:A website coding itself live
by soulofmischief on Saturday September 21, 2019 @09:50PM
(#21039129)
Nice. Here's another: https://secretgeek.github.io/html_wysiwyg/html.html
....inspired by https://github.com/secretGeek/html_wysiwyg -- thanks!
https://no-gravity.github.io/html-quine/index.html