Define a file-select field:
The <input type="file">
defines a file-select field and a "Browse" button for file uploads.
To define a file-select field that allows multiple files to be selected, add the multiple
attribute.
Tip: Always add the <label>
tag for best accessibility practices!
The numbers in the table specify the first browser version that fully supports the element.
<input type="file">
Example:
HTML
<label for="myfile">Select a file:</label>
<input type="file" id="myfile" name="myfile">
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |