4 ms·
The fact that the end tags are named means that people are also tempted to write markup like: <strong> one <em> two </strong> three </em> This is technica
by kylec 12y ago
The fact that the end tags are named means that people are also tempted to write markup like:
<strong> one <em> two </strong> three </em>
This is technically invalid, but some browsers will "helpfully" parse it and apply strength to "one", strength and emphasis to "two" and emphasis to "three". This would be avoided if the closing tag weren't named.
- icantthinkofone 12y agoInvalid markup means you are relying on the browser to read your intent or your mind. They are very good at doing that but no self-respecting web developer would ever do such an insane thing as your example. EDIT: Interesting about the downvotes. It shows a total lack of understanding the fundamentals of how browsers work but, alas, downvote away.
- adventured 12y agoYou're being downvoted because of your argument from intimidation ("no self-respecting web developer...") and your wording ("such an insane thing"), not due to a lack of understanding browsers.
- icantthinkofone 12y agoSo don't tell the truth? It's interesting that people on Hacker News are intimidated so easily when confronted with such things.
- WorldWideWayne 12y agoNo, tell the truth - just don't be a fucking asshole about it. Everything about the way you're talking makes you sound like an aggressive jerk. Even your username screams "I'm an asshole who thinks he knows it all and always has a snarky reply ready". It's OK. We've all been there. Exercise is a good way to get the negativity out.
- icantthinkofone 12y ago"I can't think of one" as a username screams "asshole who thinks he knows it all"? Wow. You should hear my thoughts now.
- deleted 12y ago[deleted]
- wantab 12y agoDon't feel bad. HN has turned into a political, anti-government step up from Reddit. But a step up from Reddit is no compliment.