News for hackers. Stuff that matters.
Re:Show HN: A guide to all HTML5 elements and attributes by jean- on Tuesday February 14, 2017 @09:29AM (#13643689)
Good stuff. Would be even nicer if it showed information about optionally self-closing tags, which is one of the main reasons I occasionally need to look at the spec. For instance:

> A p element's end tag may be omitted if the p element is immediately followed by an address, article, aside, blockquote, div, dl, fieldset, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, main, nav, ol, p, pre, section, table, or ul, element, or if there is no more content in the parent element and the parent element is not an a element.

Links to the relevant parts of the official spec would be nice too, e.g. https://www.w3.org/TR/html5/grouping-content.html#the-p-elem...

Re:Show HN: A guide to all HTML5 elements and attributes by nathancahill on Tuesday February 14, 2017 @09:45AM (#13643783)
Why would you do that to yourself?
Re:Show HN: A guide to all HTML5 elements and attributes by talmand on Tuesday February 14, 2017 @10:23AM (#13644064)
I'd rather just close the tag instead of trying to recall the specific instances of when I'm not required to close the tag.
Re:Show HN: A guide to all HTML5 elements and attributes by moron4hire on Tuesday February 14, 2017 @02:41PM (#13646469)
I think the point is that you may not be expecting the P tag to auto close, in the case of things like Address.
Re:Show HN: A guide to all HTML5 elements and attributes by tannhaeuser on Tuesday February 14, 2017 @03:16PM (#13646715)
Don't worry, http://sgmljs.net/docs/w3c-html51-dtd.html has you covered

Edit: to expand a bit, the link is to a pretty readable/hyperlinked DTD grammar for HTML (W3C HTML 5.1)

Re:Show HN: A guide to all HTML5 elements and attributes by ytugiuyghvk on Tuesday February 14, 2017 @03:41PM (#13646948)
Nit: self-closing refers to tags that are closed like <this/>.