2 ms·
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>
by detaro 6y 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>
- chrismorgan 6y agoTitle 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>.
- TazeTSchnitzel 6y agoBut you don't even need that if you're happy with quirks mode, right?
- sergeykish 6y agoRight data:text/html,