是< a href =“#”>< h1>标题< / h1>< / a&在HTML5中有效吗?
解决方法
参考:“Block-level” links in HTML5
提示:如果使用此选项,请将< a>显示:block;或者可能存在非预期的视觉造型结果:Source: Test Case
更新:
对于“默认样式很可能导致混淆”的其他“内嵌块”组合,“禁止” – explanation is here:
Cases where the default styles are likely to lead to confusion
Certain elements have default styles
or behaviors that make certain
combinations likely to lead to
confusion. Where these have equivalent
alternatives without this problem,the
confusing combinations are disallowed.For example,div elements are rendered
as block Boxes,and span elements as
inline Boxes. Putting a block Box in
an inline Box is unnecessarily
confusing; since either nesting just
div elements,or nesting just span
elements,or nesting span elements
inside div elements all serve the same
purpose as nesting a div element in
a span element,but only the latter
involves a block Box in an inline Box,
the latter combination is disallowed.