Default text in input box

Is there a way to create an input box with text in it (“email” for example), but that goes blank as soon as you click on it so someone can enter their email address?

Thanks.