Computer Science, asked by priyans56, 10 months ago

write a program using HTML to create a form and submit it with personal data like name address and standard​

Answers

Answered by samarthshinde007
78

Answer:

<!doctype html>

<html>

<head>

<title> form </title>

</head>

<body>

<form name="f1">

<h1 align="center"> Personal details </h1>

Enter your name:

<input type="text" name="t1"> <br> <br>

Enter your address:

<textarea name="t2" rows="5" cols="10" placeholder="your address" required> </textarea> <br> <br>

Select standard:

<input type="radio" name="r1" value="11"> 11 <sup> th </sup>

<input type="radio" name="r1" value="12"> 12 <sup> th </sup> <br> <br>

<input type= "submit" value="submit">

<input type="reset" value="reset">

</form>

</body>

</html>

Answered by PravinRatta
18

Program using HTML to create a form and submit it with data like name address and the standard is given below:

HTML provides various attributes, one of them is forms. Through forms, users can enter the data and submit the information on the website. The forms retrieve the data using any Backend Language.

  <form action="">

  <div class="form-info">

   <label for="name">Name: </label>

   <input type="text" name="name" id="name" placeholder="Enter your name">

           </div>

           <div class="form-info">

   <label for="email">Email: </label>

   <input type="email" name="name" id="email" placeholder="Enter your email">

           </div>

   <div class="form-info">

 <label for="address">Address: </label>

 <textarea name="address" id="address" cols="30" rows="10"></textarea>

           </div>

       </form>

In the above program user can input:

  • Name
  • Email-id
  • Address

The divs are created so that one can beautify the form using CSS.

This is how one can make a form on HTML.

Similar questions