是否允许在H1内使用< Ul? [英] Are <Ul>s allowed inside H1?
本文介绍了是否允许在H1内使用< Ul?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如果我在H1标题中添加一个列表是否会有任何问题:
I was wondering if there would be any problems if I added a list inside a H1 heading:
<h1>
<ul>
<li><a href="...">some link</a></li>
<li><a href="...">another link</a></li>
<li>current page</li>
</ul>
</h1>
该列表是面包屑"类型的导航.
the list is a "breadcrumb" type navigation.
还是将其插入列表中更好?
Or is it better to insert it inside the list?
<ul>
<li><a href="...">some link</a></li>
<li><a href="...">another link</a></li>
<li><h1>current page</h1></li>
</ul>
推荐答案
It's not valid to have a ul inside a h1, the best way of checking is to use http://validator.w3.org/ to check your structure, that way the doctype you are using will be considered. (but it's still not valid!)
这篇关于是否允许在H1内使用< Ul?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文