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 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">
- A 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
Reset Tag
<input type="reset">
Reset tag isA button that resets the contents of the form to default values.
Reset tag program
Reset tag output
button Tag
<input type="button">
Buttons are created as the final component of any form. A button lets the user trigger son events like submission of data, upload/download or any kind of alert/message.
Button Tag program
Button Tag output
Checkbox Tag
<input type="checkbox">
A check box allowing multiple values to be selected/de selected.
No comments:
Post a Comment