Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8651187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:00:04+00:00 2026-06-12T14:00:04+00:00

Per the title, is it possible to create a (non-trivial) quine in HTML? My

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T14:00:06+00:00Added an answer on June 12, 2026 at 2:00 pm

    It’s certainly not possible with “plain” HTML. Obviously it would be possible to do with JavaScript, but it’s also possible with CSS:

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>This is the title</title>
    <style type="text/css"><![CDATA[ 
    * {
      display:inline;
      white-space:pre;
    }
    html:last-child {
      white-space:normal;
    }
    html:before  {content:'<html xmlns="http://www.w3.org/1999/xhtml">';}
    html:after   {content:'</html>';}
    head:before  {content:'<head>';}
    head:after   {content:'</head>';}
    title:before {content:'<title>';}
    title:after  {content:'</title>';}
    style:before {content:'<style type="text/css"><![CDATA[';}
    style:after  {content:']]\00003e</style>';}
    body:before  {content:'<body/>';position:absolute;left:0;}
    ]]></style>
    </head>
    <body/>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to return querysets that return only one object per foreign key?
as per the title; is it possible to have nested comments in valid HTML?
As per the title, is it possible to output the XML that a new
Sounds like that is possible, per W3C am able to validate the following HTML
As per the title, is this possible? By tri-state, I mean the parent node
As per title. I have a piece of jQuery that looks like the following
As per the title, is it possible to change the first day of the
As per the title, is it possible to declare type-negating constraints in c# 4
As per the question title. Although not required; I would like to stop people
As per title, can an ActorContext extracted from within an actor be safely used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.