Hi . I think you need to look at this tutorial , it will help you - developerdrive.com/2012/06/creating-a-web-page-calculator-using-the-html5-output-element