Why to use XHTML?

DWQA QuestionsCategory: Web Design HTMLWhy to use XHTML?
Editor Staff asked 3 weeks ago

Why to use XHTML?

1 Answers
Editor Staff answered 3 weeks ago

XHTML is more formal and stricter version of HTML. i.e.

  • It has properly nested elements.
  • All XHTML elements must always be closed.
  • All XHTML elements must be written in lower case.
  • Every XHTML document must have one root element.

That is the reason behind its preferences over HTML because; most of the web pages contain bad HTML.