简体   繁体   English

W3C 验证器:元素 a 上的属性 href 值错误:缺少方案

[英]W3C validator: Bad value for attribute href on element a: Missing scheme

I have the piece of code from below, but I get the error which says "Bad value for attribute href on element a: Missing scheme."我有下面的一段代码,但我收到错误消息“元素 a 上的属性 href 值错误:缺少方案”。 when I validate the code.当我验证代码时。 How can I fix this?我怎样才能解决这个问题?

<a class="contact_mobile_link" href="tel:0511-87989280">0511-87989280</a>

在此处输入图像描述

the validator expects to see a valid schema in the href="" property.验证器希望在href=""属性中看到有效的模式。

Your screenshot clearly shows that the first character in there is a您的屏幕截图清楚地显示其中的第一个字符是 (space) (空间)

Remove that, and try with href="tel:051187989280"删除它,然后尝试使用href="tel:051187989280"

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM