How to make a clear button to clear form data?

I am a beginner and I don’t know how to do this can you please help me.

What have you got so far? There are several ways to achieve this, depending on the requirements set for the task