28 Jan 2014

Clickable Text for Radio Buttons (HTML)

1. Creating the Radio Button with the code below: 

 

1.1 How it looks like: 

 

Test

If you click on the Text nothing happens.

2. Making the Text clickable: 

 

 You just have to add the tag:


So the final version will look like this:

2.1 How it looks like:

 

If you click on the Text the Radio Button will be checked.


3. Information

 

You should always use the tag for Accessibility. It will make your Website user-friendly.



No comments:

Post a Comment