VOOZH about

URL: https://www.geeksforgeeks.org/html/html-input-typefile/

⇱ HTML <input type="file"> - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <input type="file">

Last Updated : 25 May, 2026

The HTML <input type="file"> element is used to allow users to select and upload files from their device. It is commonly used in forms for uploading documents, images, or other files.

  • Used to select and upload files from the user’s device.
  • Created using <input type="file"> inside a <form> element.
  • Supports attributes like accept, multiple, required, and disabled.

Syntax:

<input type="file"> 

Example: Demonstrate the use of the HTML <input type="file"> element.

Comment
Article Tags: