2

I keep getting Green squiggly lines underneath my a elements (not all of them) and it's really irritating me, because it's telling me that I am doing something that I am not.


enter image description here

Why does it think I am nesting my <a>'s inside a button?

1 Answer 1

7

I think the 'a button' bit is a list of tags. You can't have an a tag inside another a tag, which is what you do have here.

2
  • But I've seen this countless times, with people using it as a way of implementing a Hover-based drop down (CSS-only) menu. It's not going to cause any rendering issues, if I leave it as-is, is it?
    – jay_t55
    Aug 15, 2012 at 6:41
  • 2
    @JTS-V - I've seen plenty of people go through red lights without injuries. It doesn't mean that it's the correct thing to do though, does it? Aug 15, 2012 at 6:45

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.