multi-line tag inside a tag being closing early
I am dealing with legacy HTML of the following type:
But the browser renders this as:
The problem is that the <span> tag is closed early. Is there anything I can do to get the browser to render this as it should or is the legacy HTML badly formatted? Thanks!
You are closing the span tag after u tag.
I think this can solve your problem:
The HTML you are trying to use is invalid, the browser is attempting to fix it. You are Closing the initial "u" tag while the span is open.
You can use this resource:
The W3C Markup Validation Service
https://validator.w3.org/
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.