Per the title, is it possible to create a (non-trivial) [quine] in HTML?
My definition of an HTML quine:
> A non-trivial HTML quine is one that is not null and uses at least one HTML tag, under the assumption that some string in an HTML file is rendered by a browser as plain text. An HTML quine is defined such that the output of the `q.html` **as rendered by a standard browser** is the contents of `q.html` itself.
(I'm open for any comments on this definition, I kind of hacked it up right now)
HTML is not turing-complete, therefore the fixed-point theorem cannot be applied to prove that it is indeed possible.
However, this does not necessarily mean an HTML quine is impossible. Or can it in fact be proven that an HTML quine is impossible?
以上就是Is it possible to create an HTML quine?的详细内容，更多请关注web前端其它相关文章！