SaurabhLP
SaurabhLP

Reputation: 3657

validate tags inside anchor

Till now i know that inside <a> you can place a <span> which is perfectly HTML Validate

But what about other tags like:- div, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, videoand so on

Is their any specification on selecting the tag inside an anchor?

Upvotes: 0

Views: 125

Answers (1)

Quentin
Quentin

Reputation: 943163

The HTML specifications describe this.

See HTML 4.01:

<!ELEMENT A - - (%inline;)* -(A)       -- anchor -->

(Follow the link to see a version with hyperlinks. In the spec itself %inline is linked to its expansion).

See HTML 5:

Content model:
Transparent, but there must be no interactive content descendant.

Upvotes: 2

Related Questions