Comment by recursive

1 month ago

Are we talking about HTML or XHTML?

In HTML, you can add the slash, but it has no effect. The spec explicitly says that the slash does not close the element. The fact that it's "br" does. So you are allowed to add that slash. But adding it does not close the element.

> On void elements, it does not mark the start tag as self-closing but instead is unnecessary and has no effect of any kind.

https://html.spec.whatwg.org/multipage/syntax.html#start-tag...

In XHTML, normal XML rules apply, as you say. That's consistent with what I've said earlier in this thread also.

You’re now talking about HTML again, not XHTML!

Edit 2:

And I’m surprised you even needed to ask because the term “XHTML” has been used consistently. It really shouldn’t be confusing for someone of your obvious technical capabilities

Edit 1:

> In XHTML, normal XML rules apply, as you say. That's consistent with what I've said earlier in this thread also.

Except you haven’t said anything consistently. You keep trying to “educate” people without understanding the point they were making to begin with.

  • Ok. I don't think we really disagree on anything. You and I have both referred to HTML and XHTML elsewhere prior in this thread.

    The original post also covers both. It seems at some point one of us was talking about one of them and the other assumed it was the other.

    I thought I understood the point being made, but maybe not.