gpt4 book ai didi

HTML head 标签顺序错误

转载 作者:太空宇宙 更新时间:2023-11-04 14:23:44 24 4
gpt4 key购买 nike

enter image description here

在这个布局中它是无效的,因为 H1 不是第一个渲染的头部元素......这是一个可怕的错误还是可以吗?有任何解决这个问题的方法吗?两列的长度都是可变的,所以我看不出有什么办法解决这个问题。

引用

有人让我引用这个:

http://www.w3.org/WAI/ER/IG/ert/ert-19991221.html#Technique3.5.A

Header elements (H1-H6) should be checked to ensure they are nested according to the following rules The first header element in the document must be H1 There must be only one H1 element in the document Header levels must not increase by more than 1 level. Example: H2 following H1 is good. H3 following H1 is bad. Header elements can decrease by any level. Example: H2 following H5 is OK.

最佳答案

在何处呈现不同的标签并不重要,这完全取决于语义。 H1 只是表示该标题比H2H3 等更高级别

关于HTML head 标签顺序错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5196945/

24 4 0