Nesting in HTML and XML |
Nesting in HTML and XML |
shivam bhatele |
Jun 30 2022, 06:54 AM
Post
#1
|
Group: Members Posts: 1 Joined: 30-June 22 Member No.: 28,414 |
Hello All, I am working on a project and I want to know which shows a major nesting error between HTML and XML. According to this post, HTML does not pose a major error if nesting is not followed accurately but not an idea about XML. Can anyone know about XML nesting?
|
pandy |
Jun 30 2022, 11:01 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,733 Joined: 9-August 06 Member No.: 6 |
In a browser on the web? Well, IIRC XHTML should not display at all if there are errors. That's what caused the total train wreck the was XHTML. People continued to write tag soup with some added slashes and served it up as HTML to avoid losing face when the page didn't display. They were even encouraged to do so.
HTML interpreters are very forgiving, extremely even. With XML it's the other way around. Do it right or you're out. |
Lo-Fi Version | Time is now: 27th April 2024 - 09:30 PM |