ad

Saturday, October 29, 2022

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>

<body>

<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.

Step 2]  

<body>

  • html Contains all  visible content of the webpage.
  • Text, forms, images, and everything users interact inside the <body>.

Step 3] 

<h1>File upload</h1>

  • HTML TAG heading element.
  • <h1> tag  largest and most important heading used as the title of the page or section.
  • Text: "File upload" –  page is about.

Step 4] 

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

  • <p> defines a paragraph.
  • This gives a brief description of what the user can do on the page: choose a file for uploading.

Step 5] 

  • <form> is used to create an HTML form for user input.

Step 6] 

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

  • input  line creates the actual file selection field.
  • <input> is the most common form element for user input.

Step 7] 

<br><br>

  • These are line breaks.
  • Each <br> moves the next content to a new line.

Step 8] 

<input type="submit">

  • submit button.

Step 9] 

</form>, </body>, </html>

  • These are closing tags for the elements opened earlier.
  • They mark the end of the form, body, and HTML document.


file Tag Output


File program output



 Reset Tag 

<input type="reset">

Reset tag  isA button that resets the contents of  the form to default values.


 Checkbox Tag


<input type="checkbox">

A check box allowing multiple values to be selected/de selected.



Related Post :-

css column-gap property

create menu card in html

design web page

No comments:

Post a Comment