How do you clear the input value in HTML?
To clear all the input in an HTML form, use the <input> tag with the type attribute as reset.
How do I add a clear button to an input field?
The easiest way to add an input box with a clear button is to add an input element with the type attribute set to search . Then when we type into the input box, we see the clear button displayed. And we can click on it to clear its value.