I have tried to add cursor pointer and when user clicks a radio button it will be checked status.
So, not only on label or checkbox but all container inside section. If I uunderstand radion button will be controlled using FOR
for="radio-label-1"
and ID input. But how is controlled section in this case as input and label are separated.
To begin with, using the header and section elements within the context of a form like makes no semantic sense to me, also I don’t think it helps what you are trying to do.
Forms have their own elements for grouping inputs.
You can make the whole of the radio input container selectable by using the label element in a different way, that is: make the label the input’s container.
When an input is nested inside the label, you don’t have to use the ID and for to link them, the other side effect is that the entire container is clickable for selection. So you can style the label as a block or however you want it and have a large clickable container around the input.
Thank you for the message. I have tested already this option and I understand label and within input element.
My option uses a different way as it is more suitable. If I use radio button inside a checkbox I can open payment method (accordion menu).
So, do you have also an example where it is separate label and input element? As you see a standard approach uses your example but I try to separate them inside group radio section and Bootstrap V3 technique.