CREATING FORM
Form use to creating text , number ,email and password boxes in html page.
For creating boxes we use input tag .
Input tag is also use creating buttons in page of website.
Attribute of input tags
- Type="Text" For using text box.
- Type="Password" For using password box.
- Type="Email" For using Email box.
- Type="Radio" For using radio buttons.
- Type="submit" For using submit buttons.
Spacial Attribute
Placeholder is very spacial attribute.
FOR Example:
<!DOCTYPE html>
<html>
<body>
<form action="action_page.php">
First name:<br>
<input type="text" name="firstname" Placeholder="First name">
<br>
Last name:<br>
<input type="text" name="lastname" Placeholder="Last name">
<br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
No comments:
Post a Comment