Write a HTML code to generate following output
Answers
Answer:
<!DOCTYPE html>
<html>
<body>
<h1>The form element</h1>
<form action="/action_page.php">
<label for="fname">username:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="pass">password:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="pass">conform password:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">first name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">last name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">email:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">phone number:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">location:</label>
<input type="text" id="fname" name="fname"><br><br>
<p<type="submit" value="Submit">
</form>
</body>
</html>
Explanation:
Answer
<HTML>
<HEAD>
<TITLE>FORM 1 </TITLE> </HEAD>
<BODY>
<FORM>
<P><LABEL for = "NAME">first name</LABEL>
<INPUT ID="NAME" type="text"><BR>
<LABEL for ="NAME">LAST NAME </LABEL>
<INPUT ID="NAME" text ="text"><BR>
<LABEL for ="Gender">MALE</LABEL>
<INPUT ID="gender" type="text"><BR>
<INPUT type="RADIO" name="AGE" value ="Below 25">below 25<BR><BR> <INPUT type="RADIO" value="above
25">above 25
<INPUT type="Checkbox" name="HOBBIES" value="outdoor games">outdoor
games<BR>
<INPUT type="Checkbox" name="C2" value ="painting">painting<BR>
<INPUT type="Checkbox" name=" C3" value ="dancing">dancing<BR>
<INPUT type="Checkbox" name="C4" value
="music">music<BR>
<INPUT type="submit" value="submit">
</P>
</FORM>
</BODY>
</HTML>