简体   繁体   English

HTML:错误:开始标记已看到但相同类型的元素已打开

[英]HTML: Error: Start tag a seen but an element of the same type was already open

I have this problem when I tried to validate my code:当我尝试验证我的代码时遇到了这个问题:

Error: Start tag a seen but an element of the same type was already open.

I changed the sentence a couple of times but nothing seems to work and frankly I don't understand the error.我改变了几次句子,但似乎没有任何效果,坦率地说,我不明白这个错误。

Error: Start tag a seen but an element of the same type was already open.错误:开始标记已看到但相同类型的元素已打开。 From line 134, column 52;来自第 134 行,第 52 列; to line 134, column 84 e taking: <a href="https://www.drugs.com/">Medica到第 134 行,第 84 列 e 采取: <a href="https://www.drugs.com/">Medica

Here is the part of my code that went wrong这是我的代码出错的部分

<p>
    Resources: To learn more about diabetes and living with diabetes:
    <a href="http://www.diabetes.org/?referrer=https://www.google.com/">
        American    Diabetes Association><br>
        To learn more about the drugs that you are taking: 
    <a href="https://www.drugs.com/">
        Medications
    </a> 
    <a href="#top">
        Back to top of page
    </a>
</p>

You have three <a> start tags and only two </a> end tags.您有三个<a>开始标签和两个</a>结束标签。 You need to add the missing end tag.您需要添加缺少的结束标记。

This part is invalid:这部分无效:

<a        href="http://www.diabetes.org/?referrer=https://www.google.com/">
American    Diabetes Association>

You need to close it like this:你需要像这样关闭它:

<a        href="http://www.diabetes.org/?referrer=https://www.google.com/">
American    Diabetes Association</a>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 W3C HTML5 错误开始标签头看到但相同类型的元素已经打开 - W3C HTML5 ERROR Start tag head seen but an element of the same type was already open HTML5 验证错误:看到正文开始标记,但已打开相同类型的元素 - HTML5 Validation Error: body start tag 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 “看到开始标记头但是同一类型的元素已经打开” - “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 看到一个开始标记,但是相同类型的元素已经打开 - An a start tag 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 已看到开始标记“a”,但已打开相同类型的元素 - 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 如何在HTML中修复“Stray end tag head。”和“Start tag body body,但是已经打开了相同类型的元素。” - How to fix “Stray end tag head.” and “Start tag body seen but an element of the same type was already open.” in HTML
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM