Hacker News new | ask | show | jobs
by detaro 2069 days ago
AFAIK in HTML5 you need a doctype and and a non-empty title, but the <html> etc tags are optional:

    <!DOCTYPE html>
    <title>x</title>
1 comments

Title is actually optional “if the document is an iframe srcdoc document or if title information is available from a higher-level protocol” (such as email). So the minimal valid HTML document is actually just <!doctype html>.
But you don't even need that if you're happy with quirks mode, right?
Right data:text/html,