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.
Asked
Active
Viewed 3,364 times
6
-
2possible duplicate of [Is it legal to have children of an anchor tag () in HTML?](http://stackoverflow.com/questions/18289583/is-it-legal-to-have-children-of-an-anchor-tag-a-in-html) – cbeckner Sep 24 '14 at 13:56
-
I saw the similar question. It works for me. Tks. – Webill Sep 24 '14 at 14:11
1 Answers
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 ata
’s position, too.