Are questions regarding HTML semantics on-topic?
Potentially, yes - just like any other question about specification interpretation. Of course, they also need to meet the usual criteria for being on-topic - like being sufficiently narrowly-scoped (otherwise, "Too Broad" applies) and objective (otherwise, "Primarily Opinion Based" applies). But there is plenty that is entirely objective to be said about HTML semantics, and it is of practical importance - using semantically correct markup helps future developers understand the intent of your HTML and may help users with CSS disabled or who are using screen-readers to understand your page.
I realize that not all subjective questions are off-topic, but it seems in these cases, there is no way of providing an objective answer, beyond what is mentioned in the specifications themselves.
That "beyond what is mentioned in the specifications themselves" point seems like a hell of a qualifier to me! If a question asked whether some strange behaviour of GCC was correct, or what the correct behaviour of a C program was (perhaps one written in a way that subtly invokes undefined behaviour), would you argue that the question was opinion-based because there was no way of providing an objective answer "beyond what is mentioned in the C standards"? I presume not. It's the same here - the existence of a standard (well, actually, two of them) upon which to base an answer is what makes these questions objective.
As for your specific examples:
https://stackoverflow.com/q/40404962/215552
Too broad and too subjective. There are many semantically-correct ways to lay out the asker's multi-featured page, and he hasn't narrowed down his question to the semantics of any particular element. Quite rightly closed; while there are objectively incorrect answers, there are too many perfectly correct answers, just as much as if he'd asked "what's the correct way to calculate the factorial of an integer", and we should treat the two questions the same way.
Semantics navigation NAV vs ASIDE
Perhaps not the most the most well-written question, but seems reasonable enough. Its core is "Which is the semantically correct element for a site sidebar of links - a nav
or an aside
?" The underlying assumption that exactly one of these two ways must be the correct way is flawed, but nonetheless it's a legit question, which isn't opinion-based; the specs lay out the semantics of these elements carefully enough that it can be objectively answered based upon spec. (I think the right answer is "either is fine", but I had to delve carefully into the W3C and WhatWG HTML specs to confirm that using aside
in this way is semantically legal according to both; it's a non-trivial question.) Doesn't deserve closure, and deserves a better answer (with spec quotes) than either that is currently posted. I've voted to reopen, and may return to edit and answer if it finally gets reopened.
"Broken" links inside a <template> tag
A little broad and woolly - it's simultaneously asking a narrowly-specified question about whether having a broken link inside a template
is legal, and a more opinion-based question about whether it's "better" (how? why?) to use a different approach. Nonetheless, I think that's still a narrow and objective enough question to be okay. Doesn't deserve closure.
Submenu title, h1 or span/other
I'm not even sure I understand the question. The asker premises his question upon a site layout that includes both a "menu" and a "submenu", but shows us example HTML that includes only one menu, with a class on it indicating that it is a "submenu". Huh? I'd close this as Unclear if it weren't already closed as a dupe.
discussion
tag. This isn't the first "Are questions about subject on-topic?" question to have been posed here, so I'm a bit baffled as to that response.