Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <input type=”file”>

  • Last Updated : 29 May, 2019

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.


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<input type="file"> 


<!DOCTYPE html> 
        HTML input type file
        h1 { 
            color: green; 
        h3 { 
            font-family: Impact; 
        body { 
            text-align: center; 
        HTML <Input Type = "File"
    <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
  • Internet Explorer
  • Firefox 1.0
  • Safari 1.0
  • Opera 1.0

My Personal Notes arrow_drop_up