I was reading this blog by James Bennett regarding HTML vs XHTML . He writes :

I don’t have any need for namespaced content; I’m not displaying any complex mathematical notation here and don’t plan to, and I don’t use SVG for any images. So that’s one advantage of XHTML out the window. I also don’t have any need for XML tools; all the processing I need to do can be handled by HTML-parsing libraries like BeautifulSoup. That’s the other advantage gone.

What does he mean by namespaced content and what advantage does it provide us ?


XML namespaces allow including XML elements defined in a schema other than that of the main document. Specifically, the article talks about MathML and SVG, which are XML-based formats that can be directly embedded in an XHTML document using namespaces, looking like this:

<html xmlns="http://www.w3.org/1999/xhtml"
  XHTML content goes here
      MathML content goes here
  more XHTML content

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.