ad

Showing posts with label html form input type. Show all posts
Showing posts with label html form input type. Show all posts

Saturday, October 29, 2022

HTML File Upload

HTML File Upload            

https://webdesigningtheory.blogspot.com


       HTML Tag 




1]File Upload Tag


<input type="file">

A control that let's the user selects a file. Use the accept attribute to define the type of files that the control can select.

File Tag program 


 <html>


<h1>File upload</h1>

 <p>Show  file-select field which allows
a file to be chosen for upload:</p>

 <form action="/action.php">

 Select a file: <input type="file"
name="myFile"><br><br>

<input type="submit">

</form>

</body>

 </html>

HTML File Upload 

Explain Program


Step 1 ]  

<html>

  • root element of an HTML document.
  • All HTML content must placed inside  tag.