HTML <input type="file">

❮ HTML <input> tag ❮ HTML <input> type attribute

Example

<input type="file">

Meaning

provides control to the user for select a file.

Use the accept attribute to define the types of files that the control can select.

To allows multiple files to be selected, add the "multiple" attribute.


Standard Syntax

HTML: <input type="file">

XHTML: <input type="file" />



Browser Support




Status







❮ HTML <input> tag ❮ HTML <input> type attribute