小编Vla*_*lad的帖子

label元素的for属性必须引用非隐藏的表单控件

我的代码中有一些错误这是我的错误:

label元素的for属性必须引用非隐藏的表单控件.

和myd代码:

<form action="/search">
  <span class="input input--hoshi search-wrapp main-page-open" style="display:block">
    <input class="input__field input__field--hoshi" type="text" id="search" name="keyword" placeholder="Search..."/>
    <label class="input__label input__label--hoshi input__label--hoshi-color-2" for="input-5">
      <!--<span class="input__label-content input__label-content-hoshi">Search...</span>-->
    </label>
    <span class="icon-serch"></span>
  </span>
  <input id="search-btn" type="submit" style="display: none;"/>
</form>
Run Code Online (Sandbox Code Playgroud)

这有什么问题?谢谢!

html validation

4
推荐指数
2
解决办法
1万
查看次数

在标签"a"内标记"a"

我在验证器中有很多错误,但我不知道为什么.我的代码看起来很好.我有错误:开始标记看到但相同类型的元素已经打开.和:杂散结束标记a.这是我的代码:

<a href="/catalog/tonometri_2"><a class="sub-link"  href="/catalog/tonometri_2">Tonometers</a></a>

<a href="/catalog/ingalyatori_nebulayzeri"><a class="sub-link"  href="/catalog/ingalyatori_nebulayzeri">Inhalers</a></a>
Run Code Online (Sandbox Code Playgroud)

我可以在里面使用标签吗?

html validation hyperlink

0
推荐指数
1
解决办法
67
查看次数

标签 统计

html ×2

validation ×2

hyperlink ×1