这段代码的标记无效?

时间:2014-04-17 15:13:52

标签: html markup

看到结束标记td,但是有开放元素。我不明白,这个标记有什么问题?

<td class="column-9">
  <img src="http://4onlinecasinos.com/wp-content/uploads/2014/03/the-best-online-casinos-yes-transparent-good-e1395756650738.png" alt="This images tells that the option is positive" width="40" height="40" class="alignnone size-full wp-image-61" />
</td>
<td class="column-10">
  <a href="http://4onlinecasinos.com/out/online-casinos-888casino" target="_blank">
    <img src="http://4onlinecasinos.com/wp-content/uploads/2014/04/the-best-online-casinos-visit-button.png" alt="Visit this Online Casino" width="54" height="54" class="img-visit" />
  </td>
  <td class="column-11">
    <a href="http://4onlinecasinos.com/out/online-casinos-888casino" target="_blank">
      <img src="http://4onlinecasinos.com/wp-content/uploads/2014/04/the-best-online-casinos-info-sign-e1396351202753.png" alt="This gives you more specific information about the online casino offer" width="40" height="40" class="img-info" />
    </td>

4 个答案:

答案 0 :(得分:6)

<td class="column-10">

在TD内部

<a href="http://4onlinecasinos.com/out/online-casinos-888casino" target="_blank">

在TD内部的A

<img src="http://4onlinecasinos.com/wp-content/uploads/2014/04/the-best-online-casinos-visit-button.png" alt="Visit this Online Casino" width="54" height="54" class="img-visit" />

IMG。元素是自闭。仍然在TD内部的A

</td>

尝试关闭TD,但目前在A

在关闭A之前,您无法关闭道明,但您遗漏了</a>

答案 1 :(得分:4)

您需要关闭链接<a>代码

<td class="column-9">
  <img src="http://4onlinecasinos.com/wp-content/uploads/2014/03/the-best-online-casinos-yes-transparent-good-e1395756650738.png" alt="This images tells that the option is positive" width="40" height="40" class="alignnone size-full wp-image-61" /></a>
</td>
<td class="column-10">
  <a href="http://4onlinecasinos.com/out/online-casinos-888casino" target="_blank">
    <img src="http://4onlinecasinos.com/wp-content/uploads/2014/04/the-best-online-casinos-visit-button.png" alt="Visit this Online Casino" width="54" height="54" class="img-visit" /></a>
  </td>
  <td class="column-11">
    <a href="http://4onlinecasinos.com/out/online-casinos-888casino" target="_blank">
      <img src="http://4onlinecasinos.com/wp-content/uploads/2014/04/the-best-online-casinos-info-sign-e1396351202753.png" alt="This gives you more specific information about the online casino offer" width="40" height="40" class="img-info" /></a>
    </td>

答案 2 :(得分:1)

唯一缺少的是</a>。它会使HTML标记无效。

它完全无效,您应该将这些元素包含在打开它们中。

以下是您可以信赖的标记:

<td class="column-9">
  <img src="http://4onlinecasinos.com/wp-content/uploads/2014/03/the-best-online-casinos-yes-transparent-good-e1395756650738.png" alt="This images tells that the option is positive" width="40" height="40" class="alignnone size-full wp-image-61" />
</td>
<td class="column-10">
  <a href="http://4onlinecasinos.com/out/online-casinos-888casino" target="_blank">
    <img src="http://4onlinecasinos.com/wp-content/uploads/2014/04/the-best-online-casinos-visit-button.png" alt="Visit this Online Casino" width="54" height="54" class="img-visit" />
</a>
  </td>
  <td class="column-11">
    <a href="http://4onlinecasinos.com/out/online-casinos-888casino" target="_blank">
      <img src="http://4onlinecasinos.com/wp-content/uploads/2014/04/the-best-online-casinos-info-sign-e1396351202753.png" alt="This gives you more specific information about the online casino offer" width="40" height="40" class="img-info" />
   </a>
    </td>

答案 3 :(得分:1)

关闭<a>

<a href="http://4onlinecasinos.com/out/online-casinos-888casino" target="_blank">
    <img src="http://4onlinecasinos.com/wp-content/uploads/2014/04/the-best-online-casinos-visit-button.png" alt="Visit this Online Casino" width="54" height="54" class="img-visit" />
</a>