Tab system with pure CSS, anchor avoids the propagation to label
问题 I'm making a tab system only with CSS using :target and :checked pseudoclasses, but I have an anchor inside the label, and the label doesn't trigger the :checked . If you click in the anchor, the :checked doesn't trigger because the click is in the <a> tag, but is inside a <label> that must trigger the radio button. If you click on the border of the tab, you'll see how it triggers the :checked , but not the anchor, so the :target can't be triggered. Here you are my code, more understandable