Can we ignore the name and value ??and why the value is 2 there?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we ignore the name and value ??and why the value is 2 there??

Html minor problems pls help

22nd Jun 2017, 8:45 AM
yogesh
yogesh - avatar
3 Answers
+ 1
you can ignore the value I think you don't need value for check box but (female) you have to write before input or after you close it like this : female <input type="checkbox" name="aaa" /> or <input type="checkbox" name="aaa" /> female
22nd Jun 2017, 11:42 AM
AbduRaheem
0
and what about radio? do i need value for that? and please tell me what is the main role of value and name?
22nd Jun 2017, 11:51 AM
yogesh
yogesh - avatar
0
also radio hasn't value and for main role I don't know if there is mine role but I think you will write the value according the attributes
22nd Jun 2017, 11:58 AM
AbduRaheem