简体   繁体   English

我的博客网站在 W3 的 Validator 中抛出了一些错误?

[英]My blogger site throwing some errors in Validator of W3?

I have a website on blogger.com (mywebsite.blogspot.com)我在 blogger.com (mywebsite.blogspot.com)上有一个网站

When I run validation for my site at https://validator.w3.org .当我在https://validator.w3.org为我的网站运行验证时。 it shows me Errors like this -它向我显示了这样的错误-

Attribute xmlns:b not allowed here.此处不允许使用属性 xmlns:b。 在此处输入图像描述

Here is my HTML Code Demo-这是我的 HTML 代码演示-

<html class='v2' dir='ltr' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'></script><script src='https://yourjavascript.com/69231961363/jquery-colorbox-min.js' type='text/javascript'></script>

I have been wondering for a long time how I can solve these errors.我一直想知道如何解决这些错误。

1- add the lang="es" in to 1-将 lang="es" 添加到

2- The xmlns attribute specifies the xml namespace for a document. 2- xmlns 属性指定文档的 xml 命名空间。 Note: The xmlns attribute is required in XHTML, invalid in HTML 4.01, and optional in HTML5.注意:xmlns 属性在 XHTML 中是必需的,在 HTML 4.01 中无效,在 HTML5 中是可选的。 Note: The HTML validator at http://w3.org does not complain when the xmlns attribute is missing in an XHTML document.注意:当 XHTML 文档中缺少 xmlns 属性时, http ://w3.org 上的 HTML 验证器不会报错。

i hope solve the problem.我希望解决问题。

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

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