I have some questions about <form> tag . | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

I have some questions about <form> tag .

1- In the <form> tag there is Method attribute , I don't know what it do ? 😊 2- Within the <from> tags there is <input> tag , in the <input> tag there are some attributes , I don't know what the name attribute do ? For example : in the type of radio or checkbox attributes I don't know what the name attribute dispaly ! I checked this output , then I can't see values of name attribute . 😄 3 In the type of radio or checkbox attribute in <input> tag , what the value attribute work ?😉 Thanks for answer , so much . 😏

22nd Aug 2020, 3:19 PM
Deleted Account
Deleted Account - avatar
7 Answers
+ 1
Value of checkbox and radio comes in role after submission of form . Read this for detail... http://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio#:~:text=The%20value%20attribute%20is%20one,value%20of%20the%20value%20attribute.
22nd Aug 2020, 3:51 PM
Divya Mohan
Divya Mohan - avatar
+ 3
Probably search net ,there are many articles that will help clear your doubts about what and how each tag inside form works ,after that you can ask a specific question about what you don't understand✌️
22nd Aug 2020, 3:44 PM
Abhay
Abhay - avatar
+ 2
I don't understand what you are typing
24th Aug 2020, 10:49 AM
Oke Oluwademilade
Oke Oluwademilade - avatar
+ 1
I am really sorry for my a lot questions , 😥
22nd Aug 2020, 3:23 PM
Deleted Account
Deleted Account - avatar
+ 1
Method tell about in which form your form data submitted to the target. Possible value get and post Get is used when your form don't contain any confidential info of owner ex- Google search has get method you can see what you have search in address bar.form info transported in url . Post is required when form has confidential info of owner or form contains files it is more secure. no form info in url.
22nd Aug 2020, 3:43 PM
Divya Mohan
Divya Mohan - avatar
+ 1
Name attribute provides a way to access element in dom manupulation (js)
22nd Aug 2020, 3:45 PM
Divya Mohan
Divya Mohan - avatar
+ 1
thank you so much Dear Divya Mohan .😊 Thanks Abhay , for offering ، it can be the best way . 😉 🙂🙂
22nd Aug 2020, 4:10 PM
Deleted Account
Deleted Account - avatar