asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > INPUT type=file Element

<input type=file> Element


Creates a file select control.HTML 2, 3.2, 4, 4.01, 5

HTML Syntax

Remarks

The input type=file element creates a file upload object with a text box and browse button. This control type allows the user to select files so that their contents may be submitted with a form.

Users can enter a file path in the text box or click on the browse button to browse the file system. Authors may also specify an initial file name thru its value attribute.

The file upload add-on is required to use the input type=file object in Internet Explorer® 3.02.

NOTE: Only the <input> start tag must be present. The element has no end tag.

Attributes

The <input_file> element supports the following attributes, in addition to global attributes and attributes common to all HTML input elements.

Example

The following example defines a file upload object.

<form><input type="file"></form>

See Also

INPUT   Form Content Types


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note