Everything you type is math: single letters become italic variables, digits stay upright, and the spaces you type are ignored — MathJax spaces the formula itself, from what the symbols mean. So E=mc^2 and E = m c^2 give the same picture. Try adding spaces below, then removing them all.
Step 1 of 17 of the LaTeX tutorial. The formula of the step, E = mc^2, opens in a live playground you can edit.
Write a LaTeX or mhchem formula and see it drawn as you type, save it as an SVG that opens again, learn the notation step by step, and practise it with graded exercises. The tool needs JavaScript, because the formulas are drawn in your browser.