0

直到现在我知道<a>你可以在里面放置一个<span>完美的HTML Validate

但是其他标签呢:-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, video等等

他们是否有任何关于选择锚内标签的规范?

4

1 回答 1

2

HTML 规范对此进行了描述。

请参阅HTML 4.01

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

(按照链接查看带有超链接的版本。在规范本身%inline中链接到它的扩展)。

HTML 5

内容模型:
透明,但不能有交互式内容后代。

于 2013-05-23T06:49:59.633 回答