What are the valid html elements, if any, that can be contained within a <a> tag?
What are the valid html elements, if any, that can be contained within a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Inline elements (
a, span, strong, emamong others ) can contain other inline elements and text nodes. An anchor can contain a span, which can contain a text node.From http://www.w3.org/TR/html401/struct/global.html
As noted in other answers, you can’t nest an
ain ana.