Advertisement
Home Open Editor ❯

HTML <input> type Attribute

Example

<input type="file">

Try this code ❯

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" />


Advertisement

Home Open Editor ❯
Advertisement