我不知道为什么在验证我的网站时会收到此错误,但是显然我做错了,因为我也收到以下错误:“看到了body元素开始标记,但相同类型的元素已经打开”
<!DOCTYPE html>
<html lang="en-uk">
<head>
<title> Erasmus+</title>
<meta name="author" content="" />
<meta name="dcterms.rights" content="" />
<meta name="" />
<meta name="keywords" content="" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="" type="text/css" />
<link href="" type="text/css" />
<link rel="stylesheet" type="text/css" href="" />
<link rel="shortcut icon" type="image/x-icon" href="" />
<?php wp_head();?>
<!--[if !IE]><!-->
<style>
</style>
<!--<![endif]-->
<script>
</script>
</head>
<body class="home blog">
这是一个wordpress网站:www.erasmus-plus.ro我找不到我做错的事情。谢谢!编辑:我看到,如果我删除
<?php wp_head();?>
该错误已消失,但wordpress文件不是必需的吗?
那不是完整的HTML代码。从源头来看,您显然有:
<input type='hidden' value='http://erasmus-plus.ro/wp-content/plugins/form-maker' id='form_plugins_url' />
在第41行。这是“可显示”的代码,所以我认为这是在使头部隐式关闭并打开<body>,因此在到达显式标记时会抱怨。
我猜有些流浪插件使用wp_head将其插入您的时行为不当。尝试一一禁用您的插件,您可能会找到罪魁祸首。可能与表格有关?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句