ਫਾਰਮ ਕਿਸ ਕੰਮ ਲਈ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ। / 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
1
Answer:
To collect user input
Answered by
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
- <text>
- <number>
- <email>
- <password>
- <reset>
- <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