HTML Form #Part 8

HTML Form #Part 8



Form Tag

    Form Tag is a Tag that we can make defferent login, Registration forms.

Attributes:

        action Attribute is used to specify where the formdata is to be sent to the server after submission of the form.


Simple Login form

<form action="login.php">

Email:<Input type="email"><br>

Password:<Input type="password"><br><br>

<button type="submit">submit</button>

<button type="reset">Reset</button>

</form>


Simple Registration Form

<form action="login.php">

Name:<Input type="text"><br>

Email:<Input type="email"><br>

<Label for ="Select Gender">select Gender</Label><br>

<input type="radio" name="gender" value="male"> Male

<input type="radio" name="gender" value="female"> Female

<br>

<Label for ="Select City">Select City</Label><br>

<select>

<option selected>City</option>

<option>Bhuj</option>

<option>Mandvi</option>

<option>Abdasha</option>

</select><br>

Password:<Input type="password"><br><br>

<button type="submit">Submit</button>

<button type="reset">Reset</button>

</form>








Try it Yourself...

what you think about this article ??

Post a Comment

Previous Post Next Post