Skip to content

Instantly share code, notes, and snippets.

@makenowjust
Created March 3, 2014 15:31
Show Gist options
  • Save makenowjust/9327417 to your computer and use it in GitHub Desktop.
Save makenowjust/9327417 to your computer and use it in GitHub Desktop.
HTML5+CSS3でQuine書いてみた ref: http://qiita.com/make_now_just/items/9c48e84183f73289ef51
<!doctype html><html data-tag="html">
<head data-tag="head">
<style data-tag="style">/*<![CDATA[*/
* {
display: block;
white-space: pre;
left: 0;
margin: 0;
padding: 0;
border: 0;
}
*:before {
content: "<" attr(data-tag) " data-tag=\"" attr(data-tag) "\">";
}
*:after {
content: "</" attr(data-tag) ">";
}
html:before {
content: "<!doctype html><html data-tag=\"html\">";
}
html, head, body {
white-space: normal;
}
/*]]>*/</style>
</head>
<body data-tag="body"> </body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment