File Upload Control
It is used to transmit a file by assigning value of ‘file’ to the ’type’ attribute in the <input> tag. It creates a file upload box, also called a file select box as it facilitate a user to upload a file.
Usually website show a text field followed by a button labeled browse and on clicking the button, user locate the file to upload from PC after which the file location and name is shown in the text field provided as shown
The size of the text field can be modified by changing the size attribute in the input tag as is given in characters.
HTML code <input type=”file” name=”DOCfile” size=”40″ /> |
Browser output |
Apply for HTML5 Certification Now!!
http://www.vskills.in/certification/Certified-HTML5-Developer