HTML FORM TAG ,INPUT,TEXTAREA TAGS
FORM TAG EXAMPLE:
REG.HTML
<html>
<head>
</head>
<body>
<form action="success.html">
<div class="container">
<h1>Register</h1>
<p>Please fill in this form to create an account.</p>
<hr>
<label for="email"><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="email" required>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<label for="psw-repeat"><b>Repeat Password</b></label>
<input type="password" placeholder="Repeat Password" name="psw-repeat" required>
<hr>
<button type="submit" class="registerbtn">Register</button>
</div>
</form>
</body>
</html>
SUCCESS.HTML
<html>
<head>
</head>
<body>
Succefully Registered
</body>
</html>
</body>
</html>
INPUT TAG
Text.html
<html>
<head>
<title>HTML input Tag</title>
</head>
<body>
<form action = "/cgi-bin/hello_get.cgi" method = "get">
First name:
<input type = "text" name = "first_name" value = "" maxlength = "100" />
<br />
Last name:
<input type = "text" name = "last_name" value = "" maxlength = "100" />
<input type = "submit" value = "Submit" />
</form>
</body>
</html>
<head>
<title>HTML input Tag</title>
</head>
<body>
<form action = "/cgi-bin/hello_get.cgi" method = "get">
First name:
<input type = "text" name = "first_name" value = "" maxlength = "100" />
<br />
Last name:
<input type = "text" name = "last_name" value = "" maxlength = "100" />
<input type = "submit" value = "Submit" />
</form>
</body>
</html>
CHECKBOX
Checkbox.html
<html>
<head></head>
<body>
<form action="Details.html"
method="post">
<input type="checkbox" name="favorite1" value="chocolate" /> Chocolate
<input type="checkbox" name="favorite2" value="vanilla" /> Vanilla
<input type="checkbox" name="favorite3" value="mint" /> Mint
<input type="checkbox" name="favorite1" value="chocolate" /> Chocolate
<input type="checkbox" name="favorite2" value="vanilla" /> Vanilla
<input type="checkbox" name="favorite3" value="mint" /> Mint
<input type = "submit" value =
"Submit" />
</form>
</body>
</html>
Details.html
<html>
<head>
</head>
<body>
<head>
</head>
<body>
Succefully details saved
</body>
</html>
</body>
</html>
RADIO BUTTON
Radio.html
<html>
<head></head>
<body>
<form action="Details.html" method="post">
<input type="radio" name="sport" value="wwe" /> WRESTLING
<input type="radio" name="sport" value="cricket" /> CRICKET
<input type="radio" name="sport" value="tennis" /> TENNIS
<input type = "submit" value =
"Submit" />
</form>
</body>
</html>
Details.html
<html>
<head>
</head>
<body>
<head>
</head>
<body>
Succefully details saved
</body>
</html>
</body>
</html>
TEXT AREA
Text.html
<html>
<head>
<title>HTML textarea Tag</title>
</head>
<body>
<form action = "" method = "get">
Fill the Detail:
<br />
<textarea rows = "5" cols = "50" name = "description">
Enter your name
</textarea>
<input type = "submit" value = "submit" />
</form>
</body>
</html>
<head>
<title>HTML textarea Tag</title>
</head>
<body>
<form action = "" method = "get">
Fill the Detail:
<br />
<textarea rows = "5" cols = "50" name = "description">
Enter your name
</textarea>
<input type = "submit" value = "submit" />
</form>
</body>
</html>
Comments
Post a Comment