Using “label for” on radio buttons

前端 未结 3 577
深忆病人
深忆病人 2020-12-04 14:05

When using the \"label for\" parameter on radio buttons, to be 508 compliant*, is the following correct?

 
3条回答
  •  一个人的身影
    2020-12-04 14:26

    (Firstly read the other answers which has explained the for in the tags. Well, both the tops answers are correct, but for my challenge, it was when you have several radio boxes, you should select for them a common name like name="r1" but with different ids id="r1_1" ... id="r1_2"

    So this way the answer is more clear and removes the conflicts between name and ids as well.

    You need different ids for different options of the radio box.

    
    
           
           

提交回复
热议问题