When using MathML embedded in an HTML page (as opposed to XHTML), there are some issues you need to keep in mind:
<mspace width="1em"></mspace> not <mspace width="1em" />.
<mspace width="1em"></mspace>
<mspace width="1em" />
∫ not ∫
∫
∫
Details about MathML support in HTML pages