Live data from Hacker News

Show HN: A guide to all HTML5 elements and attributes

htmlreference.io

21–30 of 97 posts

Re: Show HN: A guide to all HTML5 elements and attributes

#21
post #17

Nice, but seems to be something wrong with the tagging. I unchecked all tags except `experimental` and I ended up with seven results, only one of which is actually experimental, (`picture`), the rest being _pretty_ cemented (`dt`, `li`, `option`, `td`, `th`, and `tr`). It also seems to leave out some other expermental tags, like `wbr` and `slot`, that are on the site.

Those `cemented` examples appear to be ones that don't have a tag at all

If you uncheck all boxes, those items remain. That's probably why they're there for your case.

Re: Show HN: A guide to all HTML5 elements and attributes

#24

It's missing the links to context & to the spec, which was the killer feature of the old WDG HTML Reference[0]. [0]: http://www.htmlhelp.com/reference/html40/alist.html

Well, there's a (rather hard to see) link to the MDN (which has reference links) in the upper right corner. But yeah, this should be more prominent.

I'd consider this one expendable, though:

https://imgur.com/a/V6SRq

(Get off my lawn!)

Re: Show HN: A guide to all HTML5 elements and attributes

#30
I believe your kbd example is incorrect. You suggest

> To save, press Ctrl + S.

But the spec (both W3C and WHATWG) suggests that individual keys should be nested inside an outer tag: "When the kbd element is nested inside another kbd element, it represents an actual key or other single unit of input as appropriate for the input mechanism."

Thus, the example should be:

> To save, press Ctrl + S.

Cite: https://w3c.github.io/html/textlevel-semantics.html#the-kbd-...

On the face of it, this seems ridiculous. It's too verbose, the tag name is misleading, and if you actually use the correct markup on GitHub or StackOverflow, it will render incorrectly because both sites assume the standalone element represents physical keyboard buttons.

On the other hand, what's the value in semantic markup if we don't adhere to its semantics?

Practically speaking, I would be a happier person today if I hadn't read that part of the spec, and instead persisted on in blissful ignorance of the element's intended semantics. Thanks, specs.

Post reply on HN