Live data from Hacker News

Every HTML Element

iamwillwang.com

31–40 of 136 posts

Re: Every HTML Element

#31
post #4

I wonder if it would be possible to do this in a way that the page shows its own source code. Similar to: https://no-gravity.github.io/html-quine/index.html Could be tricky, because non-textual elements would probably have to be taken care of individually. For example a video would probably have to show a video of its own representation in code.

I think it would be better to do a split panel so you could see the source and the end result side by side. This would eliminate the need for somehow showing the video and the source in the same place. You could even include the shadow DOM trees for a full explanation of how the browser renders complex tags like video.

Re: Every HTML Element

#32
post #25

First I've ever heard of hgroup. Subheadings are one of those little things I've wondered about the proper semantics for a million times and always end up doing something slightly different on the fly.

hgroup is considered deprecated in HTML5 though, whatever that actually means.

It means if you use it then it’ll work fine but younger people will frown at you.

Re: Every HTML Element

#33
post #4

I wonder if it would be possible to do this in a way that the page shows its own source code. Similar to: https://no-gravity.github.io/html-quine/index.html Could be tricky, because non-textual elements would probably have to be taken care of individually. For example a video would probably have to show a video of its own representation in code.

for certain elements, a quinesque approach might not be that useful, but source could be displayed juxtaposed to results. (to show numbered lists, do you want to display the ol tags before the numbers (thus using fake numbers) or do you let ol numbering tags tag the elements with numbers and then show the source inside that?)

btw it really drives me crazy that browser implementors think that when I copy/paste a numbered list, I somehow don't want the numbers.

Re: Every HTML Element

#34
post #25

Earlier quoted context omitted.

hgroup is considered deprecated in HTML5 though, whatever that actually means.

It means if you use it then it’ll work fine but younger people will frown at you.

unlike the tag where younger people will just stare at you in a creepy extended unblinking gaze. it would be so much more satisfying if it still made them blink.

Re: Every HTML Element

#36
post #25

First I've ever heard of hgroup. Subheadings are one of those little things I've wondered about the proper semantics for a million times and always end up doing something slightly different on the fly.

hgroup is considered deprecated in HTML5 though, whatever that actually means.

Is it? I don't see any such warning or notice on https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hg.... It's still listed here: https://www.w3.org/TR/2011/WD-html5-20110405/sections.html#t....

Perhaps it was re-added?

Re: Every HTML Element

#37
For people interested in this sort of thing, I recently published a blog post looking at counts of HTML tags and their attribute values from a 2.9B page Common Crawl dataset. [1]

There's also a SQLite DB available to download of the top 1k tag+attr+value combinations. [2]

[1] https://webparsing.io/blog/hidden-in-html-parsing-page-layou... [2] https://webparsing.io/data/commoncrawl-2024-11-html-tags-att...

Post reply on HN