By the end of this class, students will be able to:
<form> tag and its important attributes (action, method).<label> for accessibility.Concept:
A form is like a questionnaire or survey on a website. It collects information from users and sends it to the server.
Basic Syntax:
<form action="submit.php" method="post">
<!-- Form inputs go here -->
</form>
Attributes:
| Attribute | Description |
|---|---|
action |
URL where the form data will be sent |
method |
HTTP method (get or post) |
1️⃣ Text Input
<label for="name">Name:</label>
<input type="text" id="name" name="name">
2️⃣ Password Input
<label for="password">Password:</label>
<input type="password" id="password" name="password">
3️⃣ Email Input