W3验证,最后一站 [英] W3 validation, last leg

查看:161
本文介绍了W3验证,最后一站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



这是我验证的页面:

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

<!DOCTYPE html>

<! - [if lt IE 7]>< html class =ie ie6lang =en>百分比抑制率ENDIF] - GT!;
<! - [if IE 7]>< html class =ie ie7lang =en>百分比抑制率ENDIF] - GT!;
<! - [if IE 8]>< html class =ie ie8lang =en>百分比抑制率ENDIF] - GT!;
<! - [if(gte IE 9)|!(IE)]><! - >< html lang =en><! - <![ ENDIF] - GT;


< html>
< head>

<! - 基本页面需要
============================== ==================== - >
< meta charset =utf-8>
< title> Andrew的网页< / title>
< meta name =descriptioncontent =>
< meta name =authorcontent =>


<! - 移动特定元元件
========================== ======================== - >
< meta name =viewportcontent =width = device-width,initial-scale = 1,maximum-scale = 1>

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

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

<! - Favicons
================================ ================== - >
< link rel =快捷图标href =assets / images / favicon.ico>
< link rel =apple-touch-iconhref =assets / images / apple-touch-icon.png>
< link rel =apple-touch-iconsizes =114x114href =assets / images / apple-touch-icon- 114x114.png>

< / head>

< body>
< div id =background>
< div id =main-headclass =container>
< div class =16列>
< h1 class =remove-bottomstyle =margin-top:40px>高级互联网开发A< / h1>
< h5> Andrew David Dunkerley< / h5>
< h6> < a href =loginform.php>登入< / a>< / h6>
< h6> < a href =register.php>注册< / a>< / h6>
< h6> < a href =cart.php>购物车< / a>< / h6>





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

< / body>
< / html>

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


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

    pre> < HTML>


  • Error Line 66,Column 36:Stray start tag div。

     < / html>< div class =16 columns> 


  • 错误行66,列36:最后一个错误后无法恢复。

     < / html>< div class =16 columns> 



解决方案

试试这个

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

<! - [if lt IE 7]>< html class =ie ie6lang =en>百分比抑制率ENDIF] - GT!;
<! - [if IE 7]>< html class =ie ie7lang =en>百分比抑制率ENDIF] - GT!;
<! - [if IE 8]>< html class =ie ie8lang =en>百分比抑制率ENDIF] - GT!;
<! - [if(gte IE 9)|!(IE)]><! - >< html lang =en><! - <![ ENDIF] - GT;

< head>
< meta charset =utf-8>
< title> Andrew的网页< / title>
< meta name =descriptioncontent =>
< meta name =authorcontent =>
< meta name =viewportcontent =width = device-width,initial-scale = 1,maximum-scale = 1>
< link rel =stylesheethref =assets / css / base.css>
< link rel =stylesheethref =assets / css / skeleton.css>
< link rel =stylesheethref =assets / css / layout.css>
< link rel =stylesheethref =assets / css / navcss.css>
< link rel =stylesheethref =assets / css / map.css>
< link rel =stylesheethref =assets / css / about.css>
< link rel =快捷图标href =assets / images / favicon.ico>
< link rel =apple-touch-iconhref =assets / images / apple-touch-icon.png>
< link rel =apple-touch-iconsizes =114x114href =assets / images / apple-touch-icon-114x114.png>
< / head>
< body>
< div id =background>
< div id =main-headclass =container>
< div class =16列>
< h1 class =remove-bottomstyle =margin-top:40px>高级互联网开发A< / h1>
< h5> Andrew David Dunkerley< / h5>
< h6> < a href =loginform.php>登入< / a>< / h6>
< h6> < a href =register.php>注册< / a>< / h6>
< h6> < a href =cart.php>购物车< / a>< / h6>
< / div>
< / div>
< / div>

< / body>
< / html>


I'm doing some w3 validation. I've done most of the work as I started with 40 reported issues, now is only 3.

This is the page I'm validating:

 <?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>

and these are the errors im getting. its probably something so simple but something i keep missing.

  • Error Line 10, Column 6: Stray start tag html.

    <html>
    

  • Error Line 66, Column 36: Stray start tag div.

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

  • Error Line 66, Column 36: Cannot recover after last error. Any further errors will be ignored.

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

解决方案

try this

<?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>

这篇关于W3验证,最后一站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆