Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is about readability. The point is that only if you _don't_ have an ending slash, you need to know the tag type. If there is one, you don't need to know anything to understand the tree structure, the code is self-evident.

Do you add quotes to your single-word attribute values? Why? They are also unnecessary following the spec: https://html.spec.whatwg.org/#unquoted

Do you omit the opening html tag because it's optional? https://html.spec.whatwg.org/#optional-tags

Do you write unclosed <dd> tags? Do you close your paragraph elements?

The spec allows a lot of questionable styles, your argument that because something is not required it is superfluous doesn't hold any water.



Your use of the word superfluous is exactly what I'm saying. Why you want to write unnecessary, useless markup is beyond me. Even MDN and the W3C complain about it but that seems to mean nothing to you but I can tell when I can't teach someone values so I'm done here.


I see in your profile you've joined HN just a year ago. Welcome! I feel the need to point out that this is not a place to "teach someone values" though, but to have meaningful conversation. There doesn't have to be a winner.

The comments section of the guidelines offers some good rules of thumb: https://news.ycombinator.com/newsguidelines.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: