0

What does the name element specifies here

<form> <input type="text" name="username" /><br /> <input type="password" name="password" /> </form>

26th Sep 2018, 8:00 AM
adarsh pandey
adarsh pandey - avatar
4 Answers
+ 8
✓ Here "name" is not a Element it is an attributes. ✓It is used to describe what will be going in that field. For example type =text but what text name,lastname or place ✓So name is used to declare what will be going on ✓✓It is important mainly when working with PHP
26th Sep 2018, 8:41 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 4
✓✓It dose not display output only for describing purpose
26th Sep 2018, 10:15 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
The name attribute can also be used to group inputs together that are supposed to be behaving as a group (e.g. radio).
26th Sep 2018, 9:16 AM
Janning⭐
Janning⭐ - avatar
+ 1
but name =" username " is not displayed in the browser
26th Sep 2018, 10:04 AM
adarsh pandey
adarsh pandey - avatar