#13 link or label

from blog HTMHell, | ↗ original
↗ original
Bad code input type="checkbox" id="accept" required>label for="accept"> a href="/legal"> I accept the confidentiality policy and data… a>label> Issues and how to fix them It’s bad practice to nest elements with activation behavior (e.g. click). Users don’t expect a new page to open when they click a label. The ability to click a label provides...