Name

<input type=file>

Synopsis

<input type=file>

Create a file-selection element within a <form>.

Attributes

accept =list

Specify list of MIME types that can be accepted by this element.

accesskey =char

Define the hot-key character for this element.

disabled

Disable this control, making it inactive.

maxlength =n

Specify the maximum number of characters to accept for this element.

name =string

Specify the name of the parameter that is passed to the form-processing application for this input element (required).

notab

Specify that this element is not part of the tabbing order.

onblur =applet

Specify an applet to be run when the mouse leaves this control.

onchange =applet

Specify an applet to be run when the user changes the value of this element.

onfocus =applet

Specify an applet to be run when the mouse enters this control.

readonly

Prevent user modification of this element.

size =n

Specify the number of characters to display for this element.

tabindex =n

Specify this element’s position in the tabbing order.

taborder =n

Specify this element’s position in the tabbing order.

value =string

Specify the value of the parameter sent to the form-processing application if this form element is selected (required).

See Chapter 6 for more information on using forms.

Get Webmaster in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.