Computer Science, asked by chinu3030, 10 months ago

ਫਾਰਮ ਕਿਸ ਕੰਮ ਲਈ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ। / What is the use of Forms in HTML? / फॉर्म किस लिए उपयोग किया जाता है? * ਈਮੇਲ ਦੇ ਕੰਨਟੈਂਟ ਡਿਸਪਲੇਅ ਕਰਨ ਲਈ / To display contents of email / ईमेल की सामग्री को प्रदर्शित करने के लिए ਐਨੀਮੇਸ਼ਨ ਇਫੈਕਟ ਨੂੰ ਡਿਸਲਪੇਅ ਕਰਨ ਲਈ / To display animation effect / एनीमेशन प्रभाव प्रदर्शित करने के लिए ਯੂਜ਼ਰ ਤੋਂ ਇਨਪੁਟ ਲੈਣ ਲਈ / To collect user input / उपयोगकर्ता से इनपुट प्राप्त करने के लिए ਇਹਨ੍ਹਾਂ ਵਿਚੋਂ ਕੋਈ ਨਹੀਂ / None of These / इनमें से कोई नहीं

Answers

Answered by IpshitaSri
1

Answer:

To collect user input

Answered by mad210203
0

To collect user input.

Explanation:

  • The use of forms in HTML is to collect user input.
  • The data which is entered in the form is sent to a server of the website for processing it.
  • Syntax:

        <form>

Elements of the form

       </form>

  • The main elements in the form are
  1. <text>
  2. <number>
  3. <email>
  4. <password>
  5. <reset>
  6. <submit> etc..
  • Example:

<!DOCTYPE html>

<html>

<body>

<h1>Forms</h1>

<form>

First name: <input type = "text" name = "first_name"><br> <br>

Last name: <input type = "text" name = "last_name"><br> <br>

Phone number: <input type = "number" name = "phone_number"><br> <br>

Email: <input type = "email" name = "email"><br> <br>

<input type="submit" value="Submit Now!">

<input type="reset" value="Reset all fields">

</form>

</body>

</html>

Refer the attached image for the output of this code.

So, forms in HTML are used to collect user input.

Attachments:
Similar questions