checkbox, radiobutton with label tag inclued

Issues related to forms.
Post Reply
vincen
 
 
Posts: 25
Joined: Mon Dec 01, 2014 11:02 am

checkbox, radiobutton with label tag inclued

Post by vincen » Mon Apr 23, 2018 8:24 am

Hello,

I discovered that the Form controls checkbox and radiobutton contained a LABEL tag.

Example:
<input type = "checkbox" id = "Checkbox1" name = "" value = "on" style = "position: absolute; left: 0; top: 0;"> <label for = "Checkbox1"> < / label>

This novelty seems to me very practical but unusable, because it is impossible to introduce a value inside the tag LABEL

Thank you in advance for clarification on this subject.

Vincent Blanc

User avatar
Pablo
 
Posts: 13060
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: checkbox, radiobutton with label tag inclued

Post by Pablo » Mon Apr 23, 2018 8:40 am

The label is used to be able to modify the appearance of the checkbox, which normally would not be possible via HTML/CSS.
Enable 'Use default browser styling' if you wish to use a standard checkbox.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests