简体   繁体   English

看到一个开始标记,但是相同类型的元素已经打开

[英]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.

相关问题 “看到开始标记头但是同一类型的元素已经打开” - “Start tag head seen but an element of the same type was already open” 看到开始标记头但是已经打开了相同类型的元素 - Start tag head seen but an element of the same type was already open 已看到开始标记主体,但已打开相同类型的元素 - Start tag body seen but an element of the same type was already open HTML:错误:开始标记已看到但相同类型的元素已打开 - HTML: Error: Start tag a seen but an element of the same type was already open 已看到开始标记“a”,但已打开相同类型的元素 - Start tag "a" seen but an element of the same type was already open 错误协助:看到开始标签体,但相同类型的元素已经打开,错误:杂散结束标签头 - Assistance with Error: Start tag body seen but an element of the same type was already open and Error: Stray end tag head W3C验证程序:“看到一个开始标记,但是相同类型的元素已经打开。” - W3C validator: “Start tag a seen but an element of the same type was already open.” HTML验证列19:看到一个正文开始标签,但是相同类型的元素已经打开 - Html Validation Column 19: An body start tag seen but an element of the same type was already open W3C HTML5 错误开始标签头看到但相同类型的元素已经打开 - W3C HTML5 ERROR Start tag head seen but an element of the same type was already open “看到了开始标签主体,但相同类型的元素已经打开”并且无法弄清楚如何水平居中? - "Start tag body seen but an element of the same type was already open" & can't figure out how to center horizontally?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM