When I Google "best way to put math notation in html" the top result I get is from 1993. The advice it gives it gives doesn't seem to work in 2020.
---
I guess MathJax is the thing to use.