Questions
Q: Write a code to create following using html:
Last Updated : 17 Sep 2024
Jan 2024
Solution:
<!DOCTYPE html>
<html>
<head>
<title>Question first</title>
</head>
<body>
<form>
<fieldset>
<legend>All About You</legend>
Enter any query <input type="text"><br><br>
<input type="submit" value="Submit">
</fieldset>
</form>
</body>
</html>
Code Expalaination:
Form Elements:
<form>
: Creates the form for user input.<fieldset>
: Groups and borders form elements.<legend>
: Labels the group with "All About You".<input type="text">
: Provides a field for user input.<input type="submit" value="Submit">
: Adds a button to submit the form.
Meanwhile you can watch this video
Watch Video