2 2 TagBox[FractionBox[SqrtBox["2"], "2"], HoldForm]

The nicely-formatted sqrt(2)/2 expression shown above is rendered using MathML. Originally, I used an SVG file, as not all browsers supported MathML. It was nice to discover in 2023 that MathML support has come a long way - took you long enough, Google!!