+ 1

Should I always mention name attribute inside <input type="" id="" name="" > ??

https://sololearn.com/compiler-playground/W10W8tmEC4yK/?ref=app

31st May 2024, 2:16 PM
Al Mahmud
8 odpowiedzi
+ 4
There are some cases where it is not needed, but In general, it's a good practice to include the name attribute in your form controls to ensure proper form submission, validation, and accessibility.
31st May 2024, 8:45 PM
Chris Coder
Chris Coder - avatar
+ 3
No.
31st May 2024, 3:09 PM
JaScript
JaScript - avatar
+ 2
use double time breake element to improve gap in form label and input
1st Jun 2024, 5:41 AM
Yogendra Kumar
Yogendra Kumar - avatar
+ 1
no; but if you would like to use database, backend.... what you think: is id mandatory?
31st May 2024, 4:59 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 1
In general without name attribute, form will not submitted to the database.
1st Jun 2024, 10:14 AM
Zaman Cm
+ 1
Yes exactly
1st Jun 2024, 12:04 PM
Anees Abro
0
Then, when is it mandatory?
31st May 2024, 3:51 PM
Al Mahmud
0
Actually, i learnt in the lesson, we have to put name attribute to send the info in database.. Are not we sending info database while filling the form?
31st May 2024, 5:11 PM
Al Mahmud