Formating Input Text Box

I have a input text box and want to format the text entered.
How to do that?
could anyone help me?