[英]An a start tag seen but an element of the same type was already open
Hey im getting three errors while trying to validate my project, they are 'An a start tag seen but an element of the same type was already open.' 嘿,我在尝试验证我的项目时遇到了三个错误,它们是“看到一个开始标记,但已经打开了相同类型的元素。” , 'End tag a violates nesting rules.'
,“结束标记a违反嵌套规则。” and 'Cannot recover after last error.
和“上次错误后无法恢复。 Any further errors will be ignored.'
任何其他错误都将被忽略。” The errors while validating point to the '>' in ''.
验证时的错误指向“”中的“>”。 Im new on html and cant figure out why this is happening.
我在html上是新手,无法弄清楚为什么会这样。 Any help would be greatly appreciated :)
任何帮助将不胜感激 :)
<body>
<a href="index.html"><img class = "banner" src="banner.jpg" alt="Image"/>
<nav>
<a href="index.html">Home</a> |
<a href="product2.html">Products</a> |
<a href="about.html">About</a>
</nav>
You're missing your closing anchor tag: 您缺少结束锚标签:
<a href="index.html"><img class = "banner" src="banner.jpg" alt="Image"/> <--HERE
Change it to: 更改为:
<a href="index.html"><img class = "banner" src="banner.jpg" alt="Image"/></a>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.