Skip to main content Skip to secondary navigation

# How do I add math to a Text Area?

Main content start

The JavaScript display engine MathJax allows you to display beautiful and accessible math in all browsers. To put mathematics in a Text Area of a page you can use TeX and LaTeX notation, MathML notation, AsciiMath notation, or a combination of all three. For example, you can add the math to a Text Area like this:

and it will display on the page like this:

When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

Learn more about using TeX or LaTeX.

Note: Avoid placing math content in anything other than a Text Area. Math inserted as page titles, headings, form field labels or other elements with their own semantic meaning may have unpredictable results when it comes to accessibility and compatibility with assistive technology.