tags:

views:

90

answers:

2

Apart from using image on the button, how can I write XY on the HTML button?

+7  A: 

Assuming you mean XY then <button>X<sup>Y</sup></button>

If you were being literal, then <button>X^Y</button>

David Dorward
Yes, I mean the upper one. thx.
Ted Wong
A: 

If you're looking to have even more complex equations displayed on a webpage, not just as text in your button. Here is an interesting page that talks about math expressions and HTML.

Chris