Jump to content

Recommended Posts

Posted

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 &lt; . In HTML you can use < if it doesn’t look like a correct tag opening.

That’s just the obvious. There are many others.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...