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 File

HTML <input type = "file">

<form action="#">
    <label for="image_file">Select Image</label>
    <input type="file" id="image_file">
</form>

`

**Output

HTML-Input-Type-File

**Supported Browsers

The browsers supported by ****** are listed below: