Reputation: 1
Just curious does this: </>
, do anything? I saw this twice and I don't know if they were both typos or if they actually do something?
Upvotes: 0
Views: 268
Reputation: 155726
If you saw it in a HTML document, it's probably a typo. HTML does not allow for anonymous element closing tags (even if the name can be inferred from context).
Outside of HTML, I understand that some SGML parsers might support this syntax, but I don't believe any latter-day web browsers support it.
Maybe it's a closing </p>
element and the typist didn't apply enough pressure to the p key?
Upvotes: 1