0

Is it a good practice to create checkbox options where the text beside each checkbox is a hyperlink? What should be done if hyperlinks are necessary?

1 Answer 1

7

No.

In well formed HTML, each checkbox should have an associated <label> tag containing the text you describe. When properly paired, the checkbox can be activated or deactivated by clicking the label text. Adding a hyperlink here would be a real problem. You can, however add an additional link separate from the label if you need to add extra information to help your user. You will occasionally see these as 'help' or 'info' icons or as passages of text that say something like 'find out more about [thing]...'.

As long as the label is not a link you can always add supplemental links elsewhere in the text.

EDIT

I thought maybe I should add some citation here. So, here's a question on well formed label/input combinations on Stack Exchange and here's a page about using the label element from the W3C.

In both cases you can see that the label is linked to the input either by using the inputs id attribute or by wrapping the input inside the label.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.