HTML-FORMS
HTML-FORMS
Learning Objective
Creating FORMS using HTML tags.
FORMS IN HTML
WATCH VIDEO
https://www.youtube.com/watch?v=vUXD6zEcuwI
Identify the form elements
FORMS IN HTML
An HTML form is used to collect user input. The user input can then be
sent to a server for processing.
Form Attributes
The HTML <form> method Attribute is used to specify the HTTP method used to
send data while submitting the form. There are two kinds of HTTP methods,
which are GET and POST.
GET is better for the data which does not require any security or having images or
word documents.
POST is used to send data to a server to create/update a resource in a secure
way.
Action Attribute is used to specify where the form data is to be sent to the server
after submission of the form. Attribute Values: URL: It is used to specify the URL
of the document where the data to be sent after the submission of the form.
EX: <form action="/action_page.php" method="get">
<INPUT>
Here are the different input types you can use in
HTML:
<input type="text">
<input type="password">
<input type="radio">
<input type="checkbox">
<input type="reset">
<input type="submit">
<input type="button">
Attributes are: name, value
<INPUT>
<input type="text" name=“n1“ value=“Enter your name”>
<input type="reset">
TEXT AREA,COMBO BOX