Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML | <input type=”file”>

Improve Article
Save Article
  • Last Updated : 02 Jun, 2022
Improve Article
Save Article

The HTML <input type=”file”> is used to specify the file select field and add a button to choose a file for upload to the form. 


<input type="file"> 



<!DOCTYPE html>
        HTML input type file
        h1 {
            color: green;
        h3 {
            font-family: Impact;
        body {
            text-align: center;
        HTML &lt;Input Type = "File"&gt;
    <input type="file" id="myFile">
    <p id="submit_text"></p>



Supported Browsers: The browsers supported by <input type=”file”> are listed below:

  • Google Chrome 1.0 and above
  • Edge 12 and above
  • Internet Explorer
  • Firefox 1.0 and above
  • Safari 1.0 and above
  • Opera 11.0 and above
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!