<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>A html quine</title> </head> <body> <h1>A html quine</h1> <p> <textarea rows="45" cols="80" name="source" id="source"> </textarea> </p> <script type="text/javascript"> prepQuine() document.getElementById('source').value=writeSelf(); </script> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a> </p> </body> </html> "prepQuine()" will be replaced with javascript quine function "writeSelf()" will return the original code The result comes here...
A pregenerated example quine.