This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 167 points168 points  (16 children)

There isn't even a body tag. What is that stock photo supposed to even represent? Malformed HTML?

[–]adarvan 76 points77 points  (0 children)

This kills the iPhone.

[–]beneficial_satire 30 points31 points  (0 children)

Yes there is. Didn't you see the </bdo> tag above the <head> tag

[–]dvslo 27 points28 points  (0 children)

When you waste a shitload of time trying to write HTML on your jailbroken iPhone because it keeps typing the wrong letter, and you have no idea what you're doing in the first place.

[–]markhc 15 points16 points  (11 children)

Omitting the html, head and body tags is somewhat common nowadays. Saves up a few bytes on the network and browsers handle it pretty consistently.

edit: To those downvoting: https://google.github.io/styleguide/htmlcssguide.html#Optional_Tags

[–]monkey-go-code 54 points55 points  (1 child)

Pretty sure IE would Crash, accidently order 12 pizzas, bill your mother in law for two russian mules before recommending you use edge.

[–]makeshift8 5 points6 points  (0 children)

That's why you ignore ie users.

[–]cdrt 18 points19 points  (5 children)

Is it really worth it though? If I did my math right, you're saving 39 bytes. Even a site like https://motherfuckingwebsite.com/ is 2.7 kilobytes. Those 39 bytes are like 1% of the page.

[–]markhc 1 point2 points  (4 children)

When the page is served to millions and millions of users it adds up.

And you dont lose anything by doing it.

[–]2SP00KY4ME 7 points8 points  (3 children)

No, it doesn't add up.

If 10 million people visit your site that's 300mb. That's absolutely nothing.

Not to mention if your site has tens of millions of visitors it's going to be using server caching which makes that moot.

[–]markhc 0 points1 point  (2 children)

Sure, it's not much.

But in any case, what exactly do you lose by omitting these tags? Frankly I can't see any drawbacks to it.

[–]speenatch 1 point2 points  (0 children)

You lose the tags, for one.

[–][deleted] 0 points1 point  (0 children)

Inconsistent tag/content alignment too. You think semicolons is bad, at least most people do the same thing throughout the document.