5 ms·
Can't this entire site be replaced with: <html> <body> <h1>YES</h1> </body> </html>
by bryanalves 15y ago
Can't this entire site be replaced with:
<html>
<body>
<h1>YES</h1>
</body>
</html>
- phlux 15y agoyou forgot your <blink></blink> tags!
- sbierwagen 15y agoIn HTML5, both the <html> and <body> tags are completely optional, as are their closing tags. Since there's no other content on this "page", you don't need to close the header either, so you could replace everything with: <h1>YES
- jacobolus 15y agoThe title tag is required, though (unless you’re in an iframe), and an h1 tag must be closed (unlike, e.g., paragraph and list item tags). So your minimal page looks like: <!DOCTYPE html> <title>YES</title> <h1>YES</h1>
- sbierwagen 15y agoReally? http://validator.w3.org/check?uri=http%3A%2F%2Funitinu.net%2Fyes1.html&charset=%28detect+automatically%29&doctype=HTML5&group=0&user-agent=W3C_Validator%2F1.2 http://validator.w3.org/check?uri=http%3A%2F%2Funitinu.net%2... http://validator.w3.org/check?uri=http%3A%2F%2Funitinu.net%2Fyes2.html&charset=%28detect+automatically%29&doctype=HTML5&group=0&user-agent=W3C_Validator%2F1.2 http://validator.w3.org/check?uri=http%3A%2F%2Funitinu.net%2... http://validator.w3.org/check?uri=http%3A%2F%2Funitinu.net%2Fyes3.html&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.2 http://validator.w3.org/check?uri=http%3A%2F%2Funitinu.net%2... Dang, apparently so. Guess I was wrong. The world's most inane objection: If you force the validator to HTML5 mode, (as in the first and second links) then you don't need to declare a DOCTYPE, a savings of 16 bytes. Not that you would ever do that for a real document, since it's a dumb idea.
- notatoad 15y agoforcing the validator to HTML5 mode would imply the doctype, wouldn't it, as the only way to force a browser to HTML5 mode is to include a doctype.
- chops 15y agoThat's what I half expected the page to be, much like http://hasthelargehadroncolliderdestroyedtheworldyet.com http://hasthelargehadroncolliderdestroyedtheworldyet.com
- kgermino 15y agoAnd a full refund if the LHC site you linked is wrong too!
- yaix 15y agoLol. And if it does, the page will be updated to "Yes.", right?
- HN_Addict 15y agoClose - It will update to "Yup." The source code reads: if (!(typeof worldHasEnded == "undefined")) { document.write("YUP."); } else { document.write("NOPE."); } And, it even comes with a warranty: > <!-- if the lhc actually destroys the earth & this page isn't yet updated please email mike@frantic.org to receive a full refund -->
- grimatongueworm 15y agoVery Steve Jobs-ish. Yup. Nope.
- AltIvan 15y agoThat silly page have 6 of Pagerank... and i have years trying to get some of mine out of zero!
- Tyrannosaurs 15y agoWhich would be right bugger when you changed them all, went back to the site and found you had to change them again.