News for hackers. Stuff that matters.
Re:HTML Tags Memory Test by miiiiiike on Monday July 15, 2024 @12:15PM (#40969164)
I got to 57 before running out of tags that I use at least once a year. Had an "Oh yeah" moment when I realized that I'd forgotten html, head, title, body, script, style, and meta.
Re:HTML Tags Memory Test by KTibow on Monday July 15, 2024 @11:44PM (#40973518)
Somewhat similar experience, except I started with those and somehow forgot about headings and images.
Re:HTML Tags Memory Test by leftnode on Monday July 15, 2024 @11:59AM (#40969037)
It's funny, I've been working with HTML since 1998, and I got 36 (though I do think <font> should've been allowed). I thought I'd do a lot better, but I guess you can accomplish a lot with only a few tags, CSS, and some minimal JavaScript.
Re:HTML Tags Memory Test by alberth on Monday July 15, 2024 @12:00PM (#40969052)
I got to 41.

What helped is remembering an entire "block" of tags

e.g. H1 would also mean H2-H6

(I'll be the first to admit I really struggled to get to 41 and I too have been writing HTML by hand since 90s)

Re:HTML Tags Memory Test by taeric on Monday July 15, 2024 @12:16PM (#40969170)
I struggled to get to 44.

Mildly curious on what all I'm not using.

Re:HTML Tags Memory Test by alberth on Monday July 15, 2024 @12:24PM (#40969234)
Re:HTML Tags Memory Test by taeric on Monday July 15, 2024 @12:32PM (#40969310)
Apologies, I knew where and how to look them up. And, seeing the list, only a few I did not know. Some I couldn't remember the abbreviation used in the tag. I just didn't have enough curiosity to actually look them up. :D
Re:HTML Tags Memory Test by mediumsmart on Monday July 15, 2024 @12:39PM (#40969368)
I got 40 without "div" and tried 4 invalid ones.
Re:HTML Tags Memory Test by breck on Monday July 15, 2024 @05:45PM (#40971735)
Here's another good leet sheet: https://cheatsheets.zip/html
Re:HTML Tags Memory Test by dotancohen on Wednesday July 17, 2024 @02:43PM (#40988989)
I got to 42 and forgot about font (and center, mentioned elsewhere). But quite a lot of tags weren't valid, such as marquee. I wonder if I broke 50 including those.

For what it's worth, I started writing HTML when dates began with the prefix 19... though most of my career has been on the server side.

Re:HTML Tags Memory Test by gushogg-blake on Monday July 15, 2024 @12:13PM (#40969149)
71. Damn, some of them are obvious when you see them as well.
Re:HTML Tags Memory Test by block_dagger on Monday July 15, 2024 @12:03PM (#40969074)
Easy to cheat on this one - the "pattern" attribute on the input lists them all in the source, unobfuscated.
Re:HTML Tags Memory Test by joeyhage on Monday July 15, 2024 @12:18PM (#40969184)
TIL I cheat at my job every day when I use Google or AI code assistants
Re:HTML Tags Memory Test by KMnO4 on Monday July 15, 2024 @12:08PM (#40969114)
This isn’t an exam. You can also cheat with Google.
Re:HTML Tags Memory Test by echoangle on Monday July 15, 2024 @04:34PM (#40971256)
Yeah, and you can cheat in Minesweeper by inspecting the memory content of the game.
Re:HTML Tags Memory Test by lucasoshiro on Monday July 15, 2024 @11:14AM (#40968592)
Nice!

But it doesn't recognize marquee as a valid tag

Re:HTML Tags Memory Test by codingdave on Monday July 15, 2024 @11:39AM (#40968848)
It isn't valid. It is deprecated. Just like <blink>. But to be fair, the page doesn't specify which HTML standard we're working with.
Re:HTML Tags Memory Test by wongarsu on Monday July 15, 2024 @11:48AM (#40968930)
HTML5 says it "must not be used by authors", but it still describes it as a tag, and describes what an implementation must conform to. I guess it's open to interpretation what "valid" means. But it is an HTML tag described by the HTML standard (both HTML5[1] and the WhatWG HTML spec [2])

[1]: https://www.w3.org/TR/2011/WD-html5-20110405/obsolete.html#t...

[2]: https://html.spec.whatwg.org/multipage/rendering.html#the-ma...

Re:HTML Tags Memory Test by TonyTrapp on Monday July 15, 2024 @11:48AM (#40968932)
To be clear: Neither blink nor marquee were valid tags under any HTML standard. They always were non-standard browser extensions.
Re:HTML Tags Memory Test by mynameisvlad on Monday July 15, 2024 @12:34PM (#40969328)
It's a "non-conforming feature" but it's still a part of WhatWG's standard as obsolete, including what it should render as: https://html.spec.whatwg.org/multipage/rendering.html#the-ma... and https://html.spec.whatwg.org/multipage/obsolete.html#the-mar...
Re:HTML Tags Memory Test by astura on Monday July 15, 2024 @12:45PM (#40969426)
Because it's deprecated.
Re:HTML Tags Memory Test by Waterluvian on Monday July 15, 2024 @12:09PM (#40969121)
Wait, there's more than just `<div>` ?!
Re:HTML Tags Memory Test by robin_reala on Monday July 15, 2024 @12:11PM (#40969131)
Span gets you to 2.
Re:HTML Tags Memory Test by wongarsu on Monday July 15, 2024 @12:18PM (#40969188)
Ah, you mean <div style="display:inline"></div>?
Re:HTML Tags Memory Test by robin_reala on Monday July 15, 2024 @12:30PM (#40969292)
Even that’s pushing the boat out a bit: https://shkspr.mobi/blog/2022/12/you-dont-need-html/
Re:HTML Tags Memory Test by Waterluvian on Monday July 15, 2024 @01:01PM (#40969581)
> <plaintext> is also a real HTML element. It was deprecated in HTML 2 back in the mid-1990s. What's particularly interesting is that the element cannot be closed.

> what's particularly interesting is that the element cannot be closed

> the element cannot be closed

> cannot be closed

THE END IS NIGH! REPENT!

Re:HTML Tags Memory Test by joshmanders on Monday July 15, 2024 @01:44PM (#40969926)
Ew gross, inline styles, let me fix that.

    <div class="inline-block">click me</div>
Re:HTML Tags Memory Test by xigoi on Tuesday July 16, 2024 @04:27AM (#40974580)
Remember, you need to obfuscate your class names so that visitors won’t steal your precious code.

  <div class="zfJ2qEW6n">click me</div>
Re:HTML Tags Memory Test by mjhagen on Monday July 15, 2024 @01:20PM (#40969735)
Spot the javascript dev
Re:HTML Tags Memory Test by Brajeshwar on Monday July 15, 2024 @11:47AM (#40968927)
LOL. Nice one. Recently, a non-technical person wanting to get technical asked me to advice them on what to study such as AI Prompting or something like that. He wanted it hopefully be useful in the long-term. I suggest HTML - easy to enter and can go deep when it becomes part of other systems. HTML ain't going anywhere.

https://x.com/brajeshwar/status/1812149514632925525

Re:HTML Tags Memory Test by grose on Monday July 15, 2024 @12:23PM (#40969228)
I wonder what the most "obscure" tag is. My vote goes to <base>.
Re:HTML Tags Memory Test by gushogg-blake on Monday July 15, 2024 @12:28PM (#40969268)
I was at least vaguely aware of <base>. No idea what <samp>, <track>, <dfn> or <del> do. Also apparently <ruby> is not for embedding Ruby scripts: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ru...
Re:HTML Tags Memory Test by grose on Monday July 15, 2024 @12:40PM (#40969385)
<samp>, <var>, <kbd> are definitely weird ones. Maybe <kbd> would be more useful with some better default styling. I think <output> has some accessibility wins but I've never seen someone use it. <dfn> is a good pick, <abbr> is also up there with questionable semantic tags. <del> and <ins> are basically tailor-made for rendering diffs. <ruby> is really useful for Japanese, doing that styling manually would be a huge pain, but niche for sure. I'm happily surprised <small> survived. I still miss <center>.
Re:HTML Tags Memory Test by j1mmie on Monday July 15, 2024 @06:53PM (#40972175)
<dfn> - I was going insane trying to remember that one! I tried <def>, <definition>, <define>...
Re:HTML Tags Memory Test by lucgommans on Monday July 15, 2024 @07:22PM (#40972358)
I tried the exact same three! Eventually gave up on that path, thinking "I could swear HTML had some way to have a glossary...", and of course seeing it does after revealing the answers
Re:HTML Tags Memory Test by mj4e on Monday July 15, 2024 @01:50PM (#40969975)
samp and kbd are good for marking up terminal sessions e.g. https://j4e.name/articles/marking-up-terminal-in-html/
Re:HTML Tags Memory Test by xigoi on Monday July 15, 2024 @06:02PM (#40971844)
<dfn> is important when writing mathematical texts. I use it all the time.
Re:HTML Tags Memory Test by phantomathkg on Monday July 15, 2024 @10:50PM (#40973321)
If one play/work with audio/video streaming. the <track> tag will be something that came across.

And if you deal with Japanese website development, <ruby> and associated tags will came across, though less often.

Re:HTML Tags Memory Test by thiht on Tuesday July 16, 2024 @12:22PM (#40977939)
I got <ruby> simply because I kept seeing it in the list of tags back in the days when I used W3Schools, this useless knowledge stuck with me until today. Same for <bdi> and <kbd>. No idea what they do.
Re:HTML Tags Memory Test by xnx on Monday July 15, 2024 @12:31PM (#40969295)
Maybe more obscure now. This tag was extremely common in early web development.
Re:HTML Tags Memory Test by duskwuff on Monday July 15, 2024 @04:35PM (#40971267)
Lots of candidates, but my vote would go to <figcaption>.

Its sole purpose is to attach a caption to an image in <figure> - which basically no one uses.

Re:HTML Tags Memory Test by smitelli on Monday July 15, 2024 @06:11PM (#40971890)
I started scrolling the list at MDN, saw that there is <portal> now, then closed the tab.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/po...

Re:HTML Tags Memory Test by lucgommans on Monday July 15, 2024 @07:33PM (#40972404)
I gave it some thought but it's hard to say. For most of the ones I missed and mentioned in sibling threads, I can think of people who'd be aware of them:

- Probably <ruby> and related tags are used in Japanese and other spheres with such a language feature

- <base> I knew of, I thought archive.org used it but apparently not currently. Probably if you work with archived or otherwise namespaced content, you can reasonably find this a very familiar element

- <track> if you're a media person, doesn't seem that outlandish

- <dfn> I knew of basically, but just couldn't recall the names for glossary tags

- <kbd> is used all the time on Superuser (in Markdown, where HTML is valid though of course they filter most of it)

- Some others that I didn't remember, like <template> and <article>, were just stupidity. I know these...

This leaves <del> and <ins>. There are enough diffing tools, but it's not as big a category of software people constantly work on, especially since this is only for browsers. I'd not be surprised if these are the most-forgotten elements

Or does anyone still use <map>? I saw it in the HTML tutorial (linked from a Dutch magazine) that got me into programming so I know of it and remembered while doing the quiz, but it's fairly far faded from my mind and I'm not sure anyone would ever use it when, if you want this sort of functionality, you'd probably want the versatility of JavaScript

Re:HTML Tags Memory Test by Matheus28 on Tuesday July 16, 2024 @01:04AM (#40973768)
I’ve used <base> a lot, but it breaks so many things. It was one of my first couple guesses
Re:HTML Tags Memory Test by spencerchubb on Monday July 15, 2024 @12:23PM (#40969229)
I got 38, and I didn't remember div until I got to #35 lol. The obvious ones can be deceptively tricky
Re:HTML Tags Memory Test by eggfriedrice on Monday July 15, 2024 @12:25PM (#40969246)
Today I learned about <hgroup>!
Re:HTML Tags Memory Test by TIPSIO on Monday July 15, 2024 @12:29PM (#40969284)
In HS we were learning basic HTML and I did not care at all at the time.

The teacher had us build a page with like 10 tags or something. I thought I was clever and quickly wrote out:

h1 h2 h3 h4 h5 h6 h7 h8 h9 h10

Needless to say he told me to figure out why I needed to redo it.

Re:HTML Tags Memory Test by TheRealPomax on Monday July 15, 2024 @05:31PM (#40971635)
and you whipped out the whole "the browser doesn't care, as long as there's corresponding CSS that defines its page layout and styling"?
Re:HTML Tags Memory Test by xnx on Monday July 15, 2024 @12:37PM (#40969349)
small but not big?
Re:HTML Tags Memory Test by jeffbee on Monday July 15, 2024 @12:39PM (#40969374)
Neither marquee nor blink?
Re:HTML Tags Memory Test by xnx on Monday July 15, 2024 @12:47PM (#40969441)
I swear Google has published a report from their crawl data about how in/frequently different tags and frameworks were used, in part to determine what they might need to support in Chrome. I'm not able to find this anymore. Does anyone know what I'm talking about?
Re:HTML Tags Memory Test by phil-pickering on Monday July 15, 2024 @01:10PM (#40969648)
This is the one that Hixie published back in 2006. It helped guide a lot of the early decision-making in the WHATWG when it came to proposing new tags for HTML5 in a bid to reduce the number of div's out there:

https://web.archive.org/web/20060203035414/http://code.googl...

The mantle has now been passed to the HTTP Archive, whose Web Almanac includes a section on the popularity of HTML elements:

https://almanac.httparchive.org/en/2022/markup#elements

BTW: I got 97, which is 96 more than the number of friends I have :)

Re:HTML Tags Memory Test by xnx on Monday July 15, 2024 @01:34PM (#40969843)
That's it! Exactly what I was thinking of.
Re:HTML Tags Memory Test by lucb1e on Monday July 15, 2024 @07:14PM (#40972306)
> BTW: I got 97

Looked up your name plus the word 'w3'. I am not surprised to find involvement in an HTML spec discussion :D The top result on duckduckgo was <https://github.com/validator/validator/issues/1433#issuecomm...>.

Re:HTML Tags Memory Test by nox101 on Monday July 15, 2024 @01:38PM (#40969875)
https://chromestatus.com/

Click the stats on the left

Re:HTML Tags Memory Test by spankalee on Monday July 15, 2024 @01:48PM (#40969959)
That's from live Chrome user metrics, so it's page-view weighted and doesn't include enterprises and other users that opt-out.

HTTP Archive has similar data, but from the web crawler, so page views don't matter.

Re:HTML Tags Memory Test by dotancohen on Wednesday July 17, 2024 @02:41PM (#40988961)
Arguably, a tag is "used" when it is viewed.

I could write a page with a dozen marquees in it, but those marquees will be far less used than a single one on Google's homepage.

Re:HTML Tags Memory Test by andrei-akopian on Monday July 15, 2024 @01:19PM (#40969733)
I couldn't find anything either, my searches quickly get flooded with SEO spam.

But it shouldn't be to hard finding each of these individually.

Here are some links I could find:

https://www.advancedwebranking.com/seo/html-study

https://w3techs.com/technologies/overview/javascript_library

Re:HTML Tags Memory Test by alberth on Monday July 15, 2024 @12:59PM (#40969554)
Given that DIV seems to be the only tag frameworks use the last 10+ years, such a report is not surprising.
Re:HTML Tags Memory Test by seattle_spring on Tuesday July 16, 2024 @01:21AM (#40973829)
What do you mean by that? I know a lot of devs just blast div everywhere, but frameworks? Which ones?
Re:HTML Tags Memory Test by jessegavin on Monday July 15, 2024 @12:51PM (#40969488)
Don't right-click on the input and inspect element
Re:HTML Tags Memory Test by InsomniacL on Monday July 15, 2024 @12:59PM (#40969553)
from the source:

  const elements = [
    "html",
    "body",
    "head",
    "link",
    "meta",
    "marquee",
    "script",
    "style",
    "blogroll",
    "constructionsign",
    "guestbook",
    "webring"
  ];
  // The above array was a decoy. You weren’t peeking at the array were you?
  // Now the real array with all elements via
Re:HTML Tags Memory Test by nhggfu on Monday July 15, 2024 @01:03PM (#40969600)
fun, but meh @ including tags with only semantic purposes (nav, footer etc) that could just be a good ol' div!
Re:HTML Tags Memory Test by saurik on Monday July 15, 2024 @01:16PM (#40969688)
(edit: Multiple people have interpreted this comment in a way which makes them think I'm complaining about the semantics and one even seems to think I am "advocating for" using the wrong semantic... I am merely complaining about the chosen tag name and how much longer the much-later-added tag we all are supposed to use is than the tag which is in some sense--not technically, but morally--deprecated, as it undermines being able to use HTML as a true markup rather than a rendering target. If you find yourself thinking I'm against using <strong> and are somehow pro-<b>, maybe re-read the comment or go read some of my other much-longer explanations I've been <strong>-armed ;P into providing down-thread. FWIW, I do at least see how my comment was a bit confusing.)

Doing this reminded me how angry I am that I am supposed to use "<strong>...</strong>" instead of "<b>...</b>". The verbosity overhead in a normal document of markup littered with five-character tags for something as basic as a keyword is sufficiently worse than one-character tags that it drives me to want to use something like Markdown (but then I am angered that it went with *...* and **...** instead of /.../ and *...* and I just start to give up on other peoples' tooling entirely).

Re:HTML Tags Memory Test by catapart on Monday July 15, 2024 @01:43PM (#40969909)
Oh, one quick note about your markdown from someone stupid enough to have tried to write his own markdown flavor: those slashes are a nightmare for handling urls/paths. Trying to programmatically distinguish between "my/path to/some/ridiculous folder/and/s/y/m/bol/s" and "/i want this italic/ but not this. and sometimes o/nl/y some letters in a word." was all too much for me. I quickly retreated from using slashes at all in the markdown design. But there are definitely better programmers than me with much better designs for text parsing, so don't let me imply it's impossible (or even that hard! I honestly don't know!). I was just reminded of the anecdote and thought I'd share.
Re:HTML Tags Memory Test by wfleming on Monday July 15, 2024 @01:50PM (#40969977)
That used to be the advice, but the W3C eventually agreed with you. The spec describes <b> as "a span of text to which attention is being drawn" (https://html.spec.whatwg.org/multipage/text-level-semantics....) and no longer mentions boldface as what the tag "means", it's just how it's usually styled by default & convention.
Re:HTML Tags Memory Test by saurik on Monday July 15, 2024 @02:00PM (#40970039)
Huh... the documentation there for i is actually even more interesting to me: it seems like I'm actually actively "not supposed to be" (at least anymore, if ever) using em for almost every reason I've ever used it?!
Re:HTML Tags Memory Test by catapart on Monday July 15, 2024 @01:33PM (#40969827)
"bold" is a style, and perfectly fine to use for any word that you want to apply that style to.

"strong" is an intention and allows other things to define what style(s) that intention should be represented with.

It's not often that you want to represent something as a "bold" style without representing it as having strong emphasis, but there are times. A header is a good example of a place where you might want the header to be styled bold, but strongly emphasize a single word in the header. Since <header> doesn't apply the styles that - say - h1 does, it would be perfectly reasonable to script your header as

``` <header><b>The <strong>Worst</strong> Case Scenario</b></header> ```

... especially if you didn't want all of your headers to have a bold style applied.

Obviously there are a few other edge cases but I will admit that the vast majority of the times would naturally call for a strong tag, over a bold tag. And for those majority cases, I'm really glad that it's "strong" rather than bold, because "strong" is meaningful in different ways than "bold" and it always makes more sense, to me, reading it back as html telling me how I should interpret the word, rather than just how it should look.

Re:HTML Tags Memory Test by mk12 on Monday July 15, 2024 @01:56PM (#40970012)
I spent a while trying to do all the semantic markup properly on my blog -- <em>, <i>, <dfn>, <cite>, <mark>, <strong>, <b>, etc. I eventually gave up and just used <i> and <b> everywhere. It was such a waste of energy reading MDN docs and trying to decide between tags when they render identically and 99.9% of users aren't going to view the source. I also encountered bugs like <cite> breaking Safari Reader View.
Re:HTML Tags Memory Test by saurik on Monday July 15, 2024 @01:47PM (#40969955)
I am not complaining that it is "strong" instead of "bold" or that we have two separate tags, and I'd be perfectly happy if bold had never existed: certainly, if I actually wanted to use <b>, it isn't like anyone removed it from either the browser or the HTML standard... it is, in fact, that I agree with everything you wrote about the semantics of the situation which is why I even have a reason to be angry when I'm trying to read my hand-written markup.

Instead, I am complaining that we got to allocate a one-character tag to bold and then when we realized that we screwed that up we allocated a FIVE-character tag to strong. Hell: we hadn't even run out of one-character tags!! Why not <e>...</e> and <s>...</s>?! If you really think we needed to preserve the one-character tags, that we were given a two-character abbreviation for <em> but are forced to use a five-character word for <strong> is just insulting :(.

Re:HTML Tags Memory Test by shiomiru on Monday July 15, 2024 @02:35PM (#40970301)
<s>...</s> already exists and is the "text-decoration: line-through" tag.

Incidentally, there's also "strike" and "del", which look the same in my UA style sheet. I think strike was "deprecated" at some point, but I probably added it because websites still use it.

Re:HTML Tags Memory Test by xigoi on Tuesday July 16, 2024 @04:23AM (#40974560)
> we allocated a FIVE-character tag to strong.

Did you use ChatGPT to count the letters?

Re:HTML Tags Memory Test by austin-cheney on Monday July 15, 2024 @01:55PM (#40970005)
Typing a couple keys on a keyboard is a pretty weak complaint considering the unintended consequence of what you are advocating for results in discriminatory output against persons with access disabilities. This is the literal definition of narcissism, even if unintentional.

https://en.wikipedia.org/wiki/Narcissism

Re:HTML Tags Memory Test by saurik on Monday July 15, 2024 @02:03PM (#40970063)
But... I am, surely, not advocating for people using <b> now: I'm merely lamenting that we allocated a one-character tag for <b> and then resorted to a five-character tag for <strong>, as it affects the readability (I couldn't care less about how many characters it is to type) of the un-rendered/hand-written document.

(Hell: it isn't even clear that I'm "advocating" for anything at all; at best it would be "don't bother with HTML/Markdown, as both ended up making poor choices for readability of your source document: instead, use a custom markup/markdown and then have code--on your server--to render it into the appropriate semantic HTML". Yet, while that is how my blog used to work, I actually failed to reallocate the tag names.)

I do, in fact, carefully use <strong> in my HTML documents (though I'm now starting to wonder if that's wrong, per the sister comment which linked us to the standard; it, surprisingly-to-me, does seem like I'm "supposed to be using" <i> in most, if not all, of the places I've been using <em>...), and I've been known to go to pretty extreme lengths to correctly support various accessibility technologies in my code, both on the web and native.

It simply makes me a bit angry, every time I see it, that someone decided to make such a common element <strong> instead of, say, <s>, which I believe is a reasonable position and has nothing to do with accessibility, as we could have named the new tag <powerful> and it would have worked the same and yet clearly that would have been even worse than <strong> ;P. We should get to separately judge--and even potentially lament one of--these two decisions.

(I'm thereby going to assert pretty directly that your decision to insult me by calling a narcissist is based on you not bothering to read what I wrote or pay attention to the actual thing I was complaining about--as I'd in fact have no reason to complain if I didn't care about the same thing you do: no one removed <b> from either the standard or the implementation--and just ran with a knee-jerk interpretation of some of the keywords I used.)

Re:HTML Tags Memory Test by TheRealPomax on Monday July 15, 2024 @05:35PM (#40971668)
Note that times have changed, and what <b> used to be for back in the <font> and <center> days is not what it's still for. It's just a letter now, not short for "bold", with the following official definition:

> The b element represents a span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede.

Same for <i>: that's not short for "italic" anymore, it's just a letter now, and is defined as:

> The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts.

So go nuts: don't use <strong> or <em> if you semantically just needed <b> or <i>.

Re:HTML Tags Memory Test by sircastor on Monday July 15, 2024 @01:17PM (#40969706)
I managed to get 50 unassisted. Now looking at these comments I'm amused at some obvious ones that I missed. I've been writing html since ~1995 (I think) and I was surprised that <frame> didn't work. It was all the rage back in the day.
Re:HTML Tags Memory Test by spankalee on Monday July 15, 2024 @01:19PM (#40969720)
I would love to see an "I give up button" that tells you what you missed.

I got to 80, and I'm stumped on the last 34.

Re:HTML Tags Memory Test by saurik on Monday July 15, 2024 @01:22PM (#40969752)
It counts <object> but not <param>?
Re:HTML Tags Memory Test by catapart on Monday July 15, 2024 @01:35PM (#40969851)
None of the svg subtags, either. path/g/etc.
Re:HTML Tags Memory Test by velcrovan on Monday July 15, 2024 @01:28PM (#40969793)
I got to 63, I think mainly because I've been working on an HTML5 pretty-printer in Racket recently [1] (basically my own implementation of the formatting aspects of HTML Tidy).

[1]: https://joeldueck.com/what-about/html-printer/

Re:HTML Tags Memory Test by ygra on Monday July 15, 2024 @01:30PM (#40969810)
In hindsight I missed a few obvious ones (completely forgot lists), but would have expected HTML 4 tags to still be HTML tags (font, etc.). And I do wonder why SVG is on that list, which can be used inside HTML, but is pretty much not an HTML element, to my knowledge (same with math).
Re:HTML Tags Memory Test by oxguy3 on Monday July 15, 2024 @07:04PM (#40972246)
It's a valid HTML tag indicating that its contents are not HTML but instead SVG. The contents of a <script> tag are also not HTML, but we still consider <script> to be an HTML tag.
Re:HTML Tags Memory Test by ygra on Tuesday July 16, 2024 @12:48AM (#40973710)
It's not just the contents; it's the tag itself. The only thing that is special to my knowledge is that the HTML 5 parser understands it and applies the correct XML namespace.

...

Ah, but thinking about it while I type these lines tells me where I'm wrong: It is an HTML element that's by default rendered as a block element, takes part in all the typical layout stuff. I can apply border, border-radius, background, etc. to it and it behaves like a div. Just that I can also put graphics inside.

Re:HTML Tags Memory Test by Retr0id on Monday July 15, 2024 @01:36PM (#40969860)
I somehow never knew that "h" goes all the way up to h6.
Re:HTML Tags Memory Test by netcraft on Monday July 15, 2024 @01:52PM (#40969997)
I got 45 fairly easily, but ive been writing html for a long time. Would love to see the output reveal them in a list in order of commonality - would love to see if im missing some common ones - like if you guessed 1-20 but missed 9...

edit: Case in point, I missed <img>...

Re:HTML Tags Memory Test by lucgommans on Monday July 15, 2024 @07:18PM (#40972331)
<img> also took me the longest time, and <br> even longer though I used it within the last hour, but the facepalm moment came when I almost decided to give up and then remembered <h1> through <h6>. I even knew how many levels existed! Not that I didn't try h7 for good measure, one can't be too sure with these things :-)
Re:HTML Tags Memory Test by thiht on Tuesday July 16, 2024 @12:20PM (#40977922)
Haha, I reached 77 and completely forgot about <br/>
Re:HTML Tags Memory Test by KaiMagnus on Monday July 15, 2024 @02:08PM (#40970101)
Funny, the first ~15 are easy simply by spamming h1-h6, i, u, em, etc… but then it gets hard.

Probably the only time I’ll ever use menu, dfn or del/ins.

Re:HTML Tags Memory Test by scelerat on Monday July 15, 2024 @02:15PM (#40970152)
oh noes! I viewed source and saw the answers
Re:HTML Tags Memory Test by Titan2189 on Monday July 15, 2024 @05:06PM (#40971464)
And what else did you expect?
Re:HTML Tags Memory Test by tomjakubowski on Monday July 15, 2024 @02:16PM (#40970162)
I was hoping to be yelled at for entering <ISINDEX>, but instead my entry was politely rejected.
Re:HTML Tags Memory Test by K0nserv on Monday July 15, 2024 @02:23PM (#40970215)
Fun game, I got 76 and forget a bunch of common tags in the process: noscript, title, address, source(but I did get picture)
Re:HTML Tags Memory Test by ChilledTonic on Monday July 15, 2024 @02:28PM (#40970247)
No love for <marquee> or <center> anymore. Remember, an html tag is only truly deprecated if you stop using it and let it leave your heart.
Re:HTML Tags Memory Test by phailhaus on Monday July 15, 2024 @03:59PM (#40970997)
They say a tag dies twice. Once when it is deprecated by W3C and the second, a bit later on, when somebody uses it for the last time.
Re:HTML Tags Memory Test by Bilal_io on Monday July 15, 2024 @02:54PM (#40970454)
I was about to say. Another thing is svg sub tags. I assumed they count since they're valid HTML.

I was able to recall 48.

Re:HTML Tags Memory Test by merb on Monday July 15, 2024 @03:14PM (#40970645)
blink is also missing
Re:HTML Tags Memory Test by TheRealPomax on Monday July 15, 2024 @05:29PM (#40971618)
Who needs <marquee> when we have @keyframes? Now everything is marquee.
Re:HTML Tags Memory Test by breck on Monday July 15, 2024 @05:34PM (#40971660)
removing <center> was a mistake
Re:HTML Tags Memory Test by assimpleaspossi on Monday July 15, 2024 @07:19PM (#40972340)
center is presention. CSS is for presentation. Don't use HTML for presentation or styling.
Re:HTML Tags Memory Test by breck on Monday July 15, 2024 @11:00PM (#40973359)
I understand your position and that may be correct. I'm not sure.

It's so common (so common that it still works everywhere) might be worth an exception.

I just added 'center' tag to Scroll, and seems promising:

https://try.scroll.pub/#scroll%0A%20Hello%20world%0A%20%0A%2...

Re:HTML Tags Memory Test by seattle_spring on Tuesday July 16, 2024 @01:18AM (#40973821)
> I understand your position and that may be correct.

That's what I say to markup that uses the <center /> tag

Re:HTML Tags Memory Test by assimpleaspossi on Tuesday July 16, 2024 @03:00AM (#40974187)
The center element has been marked obsolete for over 15 years and is flagged by the W3C Validator as an error. It can be removed from browsers at any time without notice.

https://html.spec.whatwg.org/dev/obsolete.html#obsolete

Re:HTML Tags Memory Test by sph on Tuesday July 16, 2024 @09:28AM (#40976411)
Meanwhile I use Tailwind and no one can stop me.

Semantic HTML was a pipe dream and a silly idea in hindsight.

Re:HTML Tags Memory Test by assimpleaspossi on Tuesday July 16, 2024 @10:06AM (#40976758)
Tailwind is a CSS framework and not HTML.

Tailwind and CSS have nothing to do with semantics of a document outline and its markup.

Re:HTML Tags Memory Test by sph on Thursday July 18, 2024 @05:18AM (#40993875)
Tailwind is cramming CSS into HTML. It has everything to do with markup.
Re:HTML Tags Memory Test by assimpleaspossi on Thursday July 18, 2024 @03:52PM (#40999090)
You are right. And I said the same thing. Tailwind is CSS but that has nothing to do with markup which is strictly HTML.

Markup is the description of the contents of the document. CSS is the styling of the document and has nothing to do with description of content. That is the realm of HTML.

Re:HTML Tags Memory Test by euroderf on Tuesday July 16, 2024 @10:44AM (#40977102)
Bah humbug. When you just want to get semething onto the web ASAP, browser CSS defaults are pretty OK and <center> might be all you need.
Re:HTML Tags Memory Test by russellbeattie on Monday July 15, 2024 @02:31PM (#40970270)
I got to 65 left... So 49 correct. I wish it counted the correct ones. And I want to see a list of what I forgot once I give up! (I cloned the Pen to see...)

I'm sort of ashamed I couldn't remember more off the top of my head.

You know you've been doing HTML for a long time if you remembered 'base'.

Re:HTML Tags Memory Test by elicash on Monday July 15, 2024 @02:32PM (#40970285)
It looks like the comment tag isn't included. (Not sure whether it should be. Not even sure the proper way to identify it, I suppose a single "!")
Re:HTML Tags Memory Test by lucb1e on Monday July 15, 2024 @06:57PM (#40972205)
I would have said !-- is the tag name of that, though with the closing part requiring a double dash as well, it's rather unique and maybe not a proper tag... could have included it in a bonus list though, not counting it towards the total but showing it as a bonus entry at the top of your findings
Re:HTML Tags Memory Test by SushiHippie on Monday July 15, 2024 @08:59PM (#40972835)
In html 2.0 the definition makes a bit more sense than what the definition in the newest whatwg spec.

https://www.rfc-editor.org/rfc/rfc1866#section-3.2.5

Basically <!> was valid, and -- only served as the start and end of a comment, and between <! and > you could have multiple "comments", example from the rfc:

  <!-- another -- -- comment -->
In the current spec it is basically defined as starts with "<!--" and closed by "-->".

https://html.spec.whatwg.org/#comments

Re:HTML Tags Memory Test by sophiebits on Tuesday July 16, 2024 @01:02AM (#40973756)
In the DOM, comment nodes are not elements, they're their own type of node altogether. Their .nodeName is `#comment`, for what it's worth.
Re:HTML Tags Memory Test by jermaustin1 on Monday July 15, 2024 @02:52PM (#40970425)
I did worse than I thought I would since I've been at this since the late 90s. I blame code completion. I got to 68, and when another tag didn't come to me after 5 minutes, I gave up.

<blink> and <marquee> were my first guesses just for fun before I moved on and started with all the single character tags I could think of (a,b,i,p,s,u), then the various document tags (html, head, body, link, style, script, meta), then all the semantics (aside, article, nav, header, footer). Then the old school (table (and the descendants), div, p, span, etc...).

It made me realize how many tags I just do not use anymore (object or embed anyone?).

Re:HTML Tags Memory Test by jchw on Monday July 15, 2024 @03:27PM (#40970754)
I managed to get just over half-way and recall 58 of them before I ran out. I find it interesting which are omitted. I assume these tags are just fully removed from HTML5, although most of them continue to work just fine with the exception of <blink>.

- <blink>

- <marquee>

- <tt>

- <center>

- <frame>

- <frameset>

That said, it accepts both <object> and <embed>, which I found moderately surprising, since I thought that those were mostly only used for ActiveX and NPAPI plugins. Maybe the last major round of deprecations for HTML came just a tad too early to kill them off, or maybe there is more to them than that.

Some tags I feel are underrated in handwriting HTML that are still in the spec: <figure> and <figcaption>, good for semantically representing images with captions. <thead>/<tbody>/<tfoot>, semantically segments a table; In theory could be used by assistive technology, or possibly renderers that need to paginate HTML and want the table headers to repeat on each page (does any agent do this?). <picture> + <source>, pure-HTML method of having responsive images in an HTML page, can support a fallback for browsers that don't support it, too. On that note, the srcset and loading attributes of img are very useful too, srcset as an alternative to <picture>, ostencibly aimed at use cases where the different sources are identical aside from pixel density (vs <picture> which is meant to contain potentially more significantly different images for different responsive layouts.)

I wonder which things I missed. That would be a nice feature to add.

(I know I missed a few table elements because I just thought of colgroup while typing this.)

Re:HTML Tags Memory Test by bsd_source on Monday July 15, 2024 @03:58PM (#40970989)
It also doesn't accept keygen

(Although that never really worked.)

Re:HTML Tags Memory Test by anderskaseorg on Monday July 15, 2024 @04:12PM (#40971088)
It worked in all major browsers until it was removed around 2017–2019. I personally used it, as part of MIT’s authentication systems.
Re:HTML Tags Memory Test by jefftk on Monday July 15, 2024 @04:28PM (#40971222)
It also rejected one of my favorites, the long-deprecated <xmp>
Re:HTML Tags Memory Test by myfonj on Wednesday July 17, 2024 @09:10AM (#40985506)
<xmp> and <plaintext> never die!

I think/hope/believe that even though these elements fell out of grace of the standard bodies [1] long time ago, implementers simply cannot go against backwards compatibility here and remove them like spec suggest and MDN scaremongers that it "was not implemented in a consistent way" [2], yet last time I checked, the support in major browsers was pretty solid [3].

- [1] yet https://html.spec.whatwg.org/multipage/obsolete.html#xmp tells still acknowledges that "User agents must treat xmp elements in a manner equivalent to pre elements in terms of semantics and for purposes of rendering. (The parser has special behavior for this element though.)" - [2] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/xm... - [3] https://github.com/mdn/browser-compat-data/issues/2168#issue...

Re:HTML Tags Memory Test by jefftk on Wednesday July 17, 2024 @09:32AM (#40985755)
I do actually use <xmp> when authoring blog posts, though I wrote a preprocessor to convert to escaped <pre> in case some rendering environments don't support it: https://www.jefftk.com/p/i-want-xmp-but-i-know-why-i-cant-ha...
Re:HTML Tags Memory Test by assimpleaspossi on Monday July 15, 2024 @07:16PM (#40972318)
Both blink and marquee have never been part of any HTML specification since the dawn of HTML. But marquee was inserted into the current version for the sole purpose of marking it obsolete because it was in such widespread use.
Re:HTML Tags Memory Test by a_t48 on Monday July 15, 2024 @08:51PM (#40972787)
Fun fact - the website used for submitting visas to come to India still uses marquee.
Re:HTML Tags Memory Test by sdsd on Monday July 15, 2024 @09:30PM (#40972963)
I actually used marquee on two recent sites I made (for fun). On darigo.su if you open Napster (in the pokeball button computer), and on hnchan.darigo.su. I love marquee.
Re:HTML Tags Memory Test by jchw on Monday July 15, 2024 @10:57PM (#40973347)
> hnchan.darigo.su

> NB: we've left a SQLi vuln in this site. If you're smart enough to find it, congrats: you're a mod.

That's certainly a creative approach.

Re:HTML Tags Memory Test by mbo on Tuesday July 16, 2024 @01:27AM (#40973846)
No love for <q>? It does curly quoting!
Re:HTML Tags Memory Test by jchw on Tuesday July 16, 2024 @11:51AM (#40977653)
Wow, that's awesome! I've been remembering the HTML entities for double quotes for so long, I actually had no idea this tag existed.

What's even more fascinating about <q> is that it is localized too! Wow!

Check it out. If you do...

    <p lang="en"><q>My English quote</q></p>
you will of course get...

    “My English quote”
But, if you do...

    <p lang="ja"><q>日本語の引用</q></p>
Then you get:

    「日本語の引用」
Magic!

There's only one real problem I have with this: it seems to be implemented on the layout-level using ::before and ::after pseudo-elements, and thus the quotation marks are intangible. That's a real bummer, which has the result of making the quotation marks not able to be copied or selected (and their visibility to screen readers may also be impacted?)

So unfortunately, for now, I am going to continue using good ol' ldquo and rdquo. But, that's pretty neat.

Re:HTML Tags Memory Test by hobofan on Tuesday July 16, 2024 @08:14AM (#40975801)
I think for some fallback mechanisms <object> is the only way to implement them in pure HTML.

E.g. I once built a logo element, where the logo may be either at logo_A.jpg, logo_B.jpg or logo_C.jpg. As there wasn't any API to determine which of them would exist in advance, I instead used three nested <object> tags. They would request the image in sequence, and the first one that would respond with an image is displayed.

Re:HTML Tags Memory Test by CM30 on Monday July 15, 2024 @03:35PM (#40970812)
Damn, got 65 and then had no idea which ones I was missing. Turns out I forgot col, colgroup, menu, dfn, and a lot of others like that.
Re:HTML Tags Memory Test by ajanuary on Monday July 15, 2024 @04:13PM (#40971092)
Managed to get to 80 after about an hour while watching TV. Wish it would tell me which ones I’m missing, manually cross referencing seems like a bit of a pita. Fun though.
Re:HTML Tags Memory Test by blixt on Monday July 15, 2024 @04:22PM (#40971174)
Maybe the validator should be something like Object.getPrototypeOf(document.createElement("a")).constructor !== HTMLUnknownElement

I noticed several functional HTML elements (like "font") were not in the list, so might be nice to just trust the browser (not sure how you'd get the correct count per browser though).

Re:HTML Tags Memory Test by dotancohen on Wednesday July 17, 2024 @02:44PM (#40989000)
That might make the results browser-dependent.
Re:HTML Tags Memory Test by uses on Monday July 15, 2024 @04:29PM (#40971233)
After a while they start flowing off screen. Perhaps make them an inline list, or a grid, or a list that fills from the top.
Re:HTML Tags Memory Test by koito17 on Monday July 15, 2024 @05:16PM (#40971528)
For amusement, I tried inputting <applet>, <center>, <font>, <marquee>, and <object>, but the form declared them all invalid. I vividly remember using these over a decade ago.

There are a few sites still using <frame> and <frameset>, but both are marked as invalid.

Re:HTML Tags Memory Test by pvorb on Monday July 15, 2024 @05:23PM (#40971580)
<object> works, but I was surprised as well that the others don't. It was really hard for me to come up with many tags that are still allowed.
Re:HTML Tags Memory Test by CSMastermind on Monday July 15, 2024 @06:18PM (#40971948)
> There are a few sites still using <frame> and <frameset>, but both are marked as invalid.

Those are invalid now?

Well more useless knowledge accumulating in my brain I guess.

Re:HTML Tags Memory Test by Izkata on Monday July 15, 2024 @05:42PM (#40971714)
It also doesn't like <blink> and <marquee>
Re:HTML Tags Memory Test by TheRealPomax on Monday July 15, 2024 @05:24PM (#40971590)
Correctly: almost all of them were removed from the HTML spec many years ago (but not <object>, that's still a valid HTML5 element).

But: invalid according to the spec doesn't mean it won't do something in a browser, browsers aren't pure spec implementations, they're applications used by humans to view content made by humans =)

Re:HTML Tags Memory Test by ElijahLynn on Monday July 15, 2024 @05:17PM (#40971537)
I think this should be "HTML Elements Memory Test" yah? Tags are the opening and closing part of the element.
Re:HTML Tags Memory Test by SushiHippie on Monday July 15, 2024 @08:40PM (#40972722)
Yeah the tag would be the whole part between < >.

So "HTML Element Name Recall Test" would probably the most "correct" title, but I think everyone understands what the current title means.

> tag Markup that delimits an element. A tag includes a name which refers to an element declaration in the DTD, and may include attributes. [SGML]

> element A component of the hierarchical structure defined by a document type definition; it is identified in a document instance by descriptive markup, usually a start-tag and end-tag. [SGML]

https://www.rfc-editor.org/rfc/rfc1866#ref-SGML

https://en.wikipedia.org/wiki/Recall_test

Re:HTML Tags Memory Test by xigoi on Monday July 15, 2024 @05:53PM (#40971800)
I got 83, which is 82 more than the average React developer.
Re:HTML Tags Memory Test by sophiebits on Tuesday July 16, 2024 @01:00AM (#40973747)
I don't know about that, I worked on the React team full-time for several years and just got to 86 before getting tired and stopping. I imagine most of my former colleagues also know more than 1.
Re:HTML Tags Memory Test by xigoi on Tuesday July 16, 2024 @07:52AM (#40975668)
Unfortunately Facebook, the flagship React application, does not reflect that.
Re:HTML Tags Memory Test by sophiebits on Tuesday July 16, 2024 @01:04PM (#40978286)
I just loaded facebook.com and saw 30 unique elements used on my homepage. Seems reasonable enough.
Re:HTML Tags Memory Test by xigoi on Tuesday July 16, 2024 @01:10PM (#40978338)
I opened up facebook.com and clicked Inspect Element on a random comment Like button. It’s a <div> nested inside 61 (I counted) layers of <div>s.
Re:HTML Tags Memory Test by j1mmie on Monday July 15, 2024 @06:51PM (#40972163)
61! Pretty proud of that
Re:HTML Tags Memory Test by lucgommans on Monday July 15, 2024 @07:03PM (#40972242)
If you want to see which ones you've missed, put this in the JS console:

    Els.filter((item) => {return ! Elsguessed.includes(item)})
In Firefox (probably also in other browsers), links in the console are also clickable, so if you want to look any up, printing them as a link may be helpful:

    Els.filter((item) => {return ! Elsguessed.includes(item)}).map((item) => {console.log(`https://developer.mozilla.org/en-US/docs/Web/HTML/Element/${item}`)})
I got to 80 found / 34 remaining (plus, of course, various deprecated tags and some which I'm very surprised were not deprecated such as map). Of the remaining ones, I've used several in the past and would have been able to say what they do... stupid memory is bad at enumeration!
Re:HTML Tags Memory Test by gabrielsroka on Monday July 15, 2024 @07:46PM (#40972478)
> in the JS console

in the CodePen console, not in the browser's console.

here's a shorter version.

  Els.filter(item => !Elsguessed.includes(item)).forEach(item => console.log(`https://developer.mozilla.org/en-US/docs/Web/HTML/Element/${item}`))
or

  new Set(Els).difference(new Set(Elsguessed))
Re:HTML Tags Memory Test by assimpleaspossi on Monday July 15, 2024 @07:21PM (#40972349)
Many people mention marquee and blink. Neither of those have ever been part of any HTML specification since the dawn of HTML. marquee was inserted into the current version of HTML for the sole purpose of marking it obsolete because so many people were using it (so I was told long ago).
Re:HTML Tags Memory Test by spixy on Monday July 15, 2024 @07:33PM (#40972405)
ooh, from the title I tought it was RAM test (aka MemTest86) written in HTML and was confused
Re:HTML Tags Memory Test by rokob on Monday July 15, 2024 @08:19PM (#40972617)
I got 59. Too bad about frame and frameset. I was happy to recall map and area.
Re:HTML Tags Memory Test by ttfkam on Monday July 15, 2024 @10:29PM (#40973230)
90 out of 114. 24 eluded me.
Re:HTML Tags Memory Test by KomoD on Monday July 15, 2024 @10:33PM (#40973246)
First one I tried was marquee but it's not included :(
Re:HTML Tags Memory Test by ocodo on Monday July 15, 2024 @10:33PM (#40973253)
Same with font
Re:HTML Tags Memory Test by throwaway290 on Tuesday July 16, 2024 @05:48AM (#40974960)
I got to 42 tags, after hitting two tags that exist but were considered invalid by this game (tt, center) I gave up :)
Re:HTML Tags Memory Test by SCLeo on Tuesday July 16, 2024 @10:31PM (#40982071)
I feel so stupid to left out h1-h6. Also completely forgot about the entire table related tags.