HTML 5: The Markup Language (ARIA Edition)

input type=filefile upload control # T

The input element with a type attribute whose value is "file" represents a list of file items, each consisting of a file name, a file type, and a file body (the contents of the file).

Content model #

Attribute model #

Element-specific attributes #

type = "file"
Specifies that its input element represents a list of file items.
accept = mimetypelist
Provides the UA with a hint of what file types the server is able to accept.

Assertions #

Tag omission #

The input element is a void element. An input element must have a start tag but must not have an end tag.

Permitted contexts #