Hacker News new | ask | show | jobs
by TheRealPomax 3566 days ago
Use a build tool (which you should be doing anyway if you hand-write any markup, because you need to validate it) and make it rewrite </> to the relevant closing tag, if necessary... problem solved? (and yes, you'd be free to even leave </> off in many, many places: https://www.w3.org/TR/html5/syntax.html#optional-tags).

Alternatively, don't use HTML at all. Use pug (formerly "jade") or something and now you're free from all those inconvenient angle brackets.

1 comments

After using pug, I don't think I can go back to plain HTML. I didn't know how much i hated closing tags.