Let’s add an editable mathfield to a web page.
1. Load the MathLive library from a CDN with a
Read about other options to integrate MathLive in your project in the Getting Started Guide.
2. Add a
<math-field> tag. The content of the this tag is the initial value
of the mathfield, as a Latex expression.
3. Edit the equation in the code playground below.
4. Change line 3 of the HTML to another Latex expression.
f(x) = \sin(x),