Chapter 7 - Form Tag
Chapter 7 - Form Tag
Form Tag: The <form> tag in HTML is used to create a form for user input. It serves as a container
for various form elements like text fields, checkboxes, radio buttons, submit buttons, and others. The
form tag defines how the form data is sent when submitted (usually to a server for processing).
S are:
○ GET: Data is sent in the URL.
○ POST: Data is sent in the request body (more secure).
○ Example: method="post"
S
<label for="datetime">Date and Time:</label>
<input type="datetime-local" id="datetime" name="datetime"><br><br>
S
</form>
S
IIC