HTML File Tag is used to upload any file to the server. You find many times on a web page that a form gives you an option to upload any file like your resume etc.to the server. This is possible through File Input Tag.
With the use of a file tag, user can upload his file in the form. It is done through <input>
tag by specifying type equals to file. This will allow user to send entire file from his computer to the web server through form input.
Syntax
<form> <input type=file value="upload file"> </form>
Example
<!DOCTYPE html> <html> <head> <title>My HTML File Input Tag Example</title> </head> <body> <form> Upload your Resume: <input type=file value="Upload File"/> <p> <input type=submit value="Submit"/> </p> </form> </body> </html>
This will produce following result