6

I just watched this video about Bootstrap, and I saw a p inside an a. I would like to know if it is correct semantically.

unor
  • 92,415
  • 26
  • 211
  • 360
Webill
  • 365
  • 3
  • 12

1 Answers1

7

This is allowed (since HTML5, where the a element has a transparent content model) if

  • the a element is valid at this position, and
  • the p element would be valid at a’s position, too.

(More detailed answer about the transparent content model)

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360