W3验证,最后一站

时间:2015-01-11 16:27:19

标签: html html5

我正在做一些w3验证。我完成了大部分工作,因为我从40个报告的问题开始,现在只有3个。

这是我正在验证的页面:

 <?php
session_start();
ob_start();
 ?>

<!DOCTYPE html>

<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"><!--<![endif]-->


<html>
<head>

    <!-- Basic Page Needs
  ================================================== -->
<meta charset="utf-8">
<title>Andrew's Webpage</title>
<meta name="description" content="">
<meta name="author" content="">


<!-- Mobile Specific Metas
    ================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<!-- CSS
  ================================================== -->
    <link rel="stylesheet" href="assets/css/base.css">
    <link rel="stylesheet" href="assets/css/skeleton.css">
    <link rel="stylesheet" href="assets/css/layout.css">
    <link rel="stylesheet" href="assets/css/navcss.css">
    <link rel="stylesheet" href="assets/css/map.css">
    <link rel="stylesheet" href="assets/css/about.css">

    <!--[if lt IE 9]>
        <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Favicons
        ================================================== -->
    <link rel="shortcut icon" href="assets/images/favicon.ico">
    <link rel="apple-touch-icon" href="assets/images/apple-touch-icon.png">
    <link rel="apple-touch-icon" sizes="72x72" href="assets/images/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="114x114" href="assets/images/apple-touch-icon-    114x114.png">

</head>

<body>
<div id= "background">
<div id = "main-head" class="container">
        <div class="sixteen columns">
            <h1 class="remove-bottom" style="margin-top: 40px">Advanced Internet Development A </h1>
            <h5>Andrew David Dunkerley</h5>
                <h6> <a href="loginform.php">Login</a></h6>
                <h6> <a href="register.php">Register</a></h6>   
                <h6> <a href="cart.php">Cart</a></h6>





    </div>
    </div>
       </div>

    </body>
    </html>

这些是我得到的错误。它可能是如此简单但我不断缺失的东西。

  • 错误第10行,第6列:Stray start tag html。

    <html>
    
  • 错误第66行,第36列:错误开始标记div。

    </html><div class="sixteen columns">
    
  • 第66行错误,第36列:上次错误后无法恢复。任何进一步的错误都将被忽略。

    </html><div class="sixteen columns">
    

1 个答案:

答案 0 :(得分:0)

试试这个

<?php
session_start();
ob_start();
?>
<!DOCTYPE html>

<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"><!--<![endif]-->

    <head>
        <meta charset="utf-8">
        <title>Andrew's Webpage</title>
        <meta name="description" content="">
        <meta name="author" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link rel="stylesheet" href="assets/css/base.css">
        <link rel="stylesheet" href="assets/css/skeleton.css">
        <link rel="stylesheet" href="assets/css/layout.css">
        <link rel="stylesheet" href="assets/css/navcss.css">
        <link rel="stylesheet" href="assets/css/map.css">
        <link rel="stylesheet" href="assets/css/about.css">
        <link rel="shortcut icon" href="assets/images/favicon.ico">
        <link rel="apple-touch-icon" href="assets/images/apple-touch-icon.png">
        <link rel="apple-touch-icon" sizes="72x72" href="assets/images/apple-touch-icon-72x72.png">
        <link rel="apple-touch-icon" sizes="114x114" href="assets/images/apple-touch-icon-114x114.png">
    </head>
    <body>
        <div id= "background">
            <div id = "main-head" class="container">
                <div class="sixteen columns">
                    <h1 class="remove-bottom" style="margin-top: 40px">Advanced Internet Development A </h1>
                    <h5>Andrew David Dunkerley</h5>
                    <h6> <a href="loginform.php">Login</a></h6>
                    <h6> <a href="register.php">Register</a></h6>   
                    <h6> <a href="cart.php">Cart</a></h6>
                </div>
            </div>
        </div>

    </body>
</html>