SubhanUllah Posted October 8, 2022 Report Posted October 8, 2022 XML doesn’t tolerate syntax errors. HTML does, with specifications on to correct them. XML tags have to be closed. They can auto-close, like <stuff/> which is equivalent to <stuff></stuff>. HTML tags that are meant to be empty, don’t need a syntax that closes them. XML tags’ attribute values have to be quote. It’s <a thing="stuff"> or <a thing='stuff'> but not <a thing=stuff> XML tags don’t tolerate < other than to open a tag. If you want the text < in XML you need < . In HTML you can use < if it doesn’t look like a correct tag opening. That’s just the obvious. There are many others.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now