Ques related to html form elements | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Ques related to html form elements

Hi friends, it's difficult to understand how form elements works in html, because there are many attributes that made its difficult to understand what are the thing they do in creating a form. I have tried to learn but this is something that I'm unable to understand. Please if anybody here who can show me that how form is created in html in simple manner, please help. Thanks.☺️

20th Nov 2018, 5:59 AM
Himanshu Rai
Himanshu Rai - avatar
4 Answers
+ 2
<form> <input type="phone number"> <input type="number" <input type="email"> </form> etc basically the form tag in html is used to create a user input..the type will be what kind of form you are asking the user for.
20th Nov 2018, 6:15 AM
Jason Kennedy
20th Nov 2018, 6:42 AM
AL Araf
AL Araf - avatar
+ 2
Basically you need to learn input type!! Input type is the main and others is not so important!!😊
20th Nov 2018, 6:43 AM
AL Araf
AL Araf - avatar
+ 2
If you are looking to understand the attributes better, this is a good reference: https://www.w3schools.com/tags/tag_form.asp From this page, you can delve deeper into each individual attribute for the form element via the links (bridges over to PHP fairly well) and each individual attribute for each element that can be placed within the form element (such as input, label, etc.) and their acceptable values. I think common ones to experiment with initially are "placeholder" and "required". Note that if you use input type="checkbox" or type="radio", you will want to use the "name" attribute and use a common/shared value for the ones you want to group together. Don't worry. It takes practice. 🙂
20th Nov 2018, 8:53 AM
Janning⭐
Janning⭐ - avatar