【发布时间】:2017-04-06 14:58:16
【问题描述】:
运行验证并遇到一些错误。
f<!DOCTYPE html>↩
<!--[if IE 8 ]><html class="ie ie8 no-js" lang="en-US" prefix="og: http://ogp.me/ns#"> <![endif]-->↩
<!--[if (gte IE 9)|!(IE)]><!--><html class="no-js" lang="en-US" prefix="og: http://ogp.me/ns#"> <!--<![endif]-->↩
<head>↩
我尝试将 header.php 保存为(UTF-8,无 BOM),但我似乎无法在开始时动摇非空格字符('f')。
这是 PHP 代码:
<!DOCTYPE html>
<?php
/**
* Theme Header
*
* Outputs <head> and header content (logo, tagline, navigation)
*/
?>
<!--[if IE 8 ]><html class="ie ie8 no-js" <?php language_attributes(); ?>> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html class="no-js" <?php language_attributes(); ?>> <!--<![endif]-->
<head>
然后,我不知道从哪里开始“stray html”错误标签。自己检查http://wsumc.com/worship
【问题讨论】:
-
有 PHP 吗?
f来自哪里? -
DOCTYPE必须排在第一位,所以删除f -
向我们展示实际的 PHP 代码。
-
我不知道 f 来自哪里 - 它不在 php 文件中。 ...
-
好的 - 我找到了 f ... 它在父主题的头文件中。 ...现在要解决一系列全新的错误。
标签: php html html-parsing w3c-validation