HTML <input type="file"> (original) (raw)
Last Updated : 20 May, 2024
The **HTML element is used to create a file input box in forms. It allows users to browse and select files to upload from the devices. When the form is submitted, the selected file(s) can be uploaded to the server.
**Syntax
**Example: In this example, we will demonstrate the use of the HTML element.
HTML `
HTML Input Type FileHTML <input type = "file">
<form action="#">
<label for="image_file">Select Image</label>
<input type="file" id="image_file">
</form>
`
**Output
**Supported Browsers
The browsers supported by ****** are listed below:
- Chrome 1
- Edge 12
- Firefox 1
- Opera 11
- Safari 1