Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何修复html中没有根元素的致命错误_Html_W3c Validation - Fatal编程技术网

如何修复html中没有根元素的致命错误

如何修复html中没有根元素的致命错误,html,w3c-validation,Html,W3c Validation,我正在对一个网站进行简化,但在html中遇到了一个错误。我找不到解决方案,用一个html检查器检查了它,结果是“没有根元素的致命错误”,这意味着什么?我如何修复它? 荣誉 信息 团队 由保罗·塔姆布里尼(Paul Tamburrini)、餐厅经理史蒂文·斯皮尔(Steven Spear)和马丁·威斯哈特(Martin Wishart)领导的荣誉爱丁堡注定会成为该国最受关注的餐厅之一。 礼券 为了荣誉-爱丁堡,或马丁的任何其他伟大餐厅-马丁威斯哈特餐厅和洛蒙湖餐厅。 营业时间 星期二至星

我正在对一个网站进行简化,但在html中遇到了一个错误。我找不到解决方案,用一个html检查器检查了它,结果是“没有根元素的致命错误”,这意味着什么?我如何修复它?


荣誉
信息
团队

由保罗·塔姆布里尼(Paul Tamburrini)、餐厅经理史蒂文·斯皮尔(Steven Spear)和马丁·威斯哈特(Martin Wishart)领导的荣誉爱丁堡注定会成为该国最受关注的餐厅之一。

礼券 为了荣誉-爱丁堡,或马丁的任何其他伟大餐厅-马丁威斯哈特餐厅和洛蒙湖餐厅。

营业时间 星期二至星期六
午餐12:00—14:30
晚餐18:00—22:00
周日全天休息
周一全天休息
联系方式 荣誉勋章-爱丁堡
北城堡街58a号
爱丁堡EH2 3LU
电话:0131 220 2513

新闻稿 所有最新消息,更新 以及在爱丁堡荣誉酒店举行的活动, 只需输入您的详细信息和 您将收到我们的独家服务 新闻稿直接发送到您的收件箱


您应该遵循正确的html结构,这意味着添加
元素:

<!DOCTYPE html>
    <html lang="en">
        <head>
            <meta charset="UTF-8">
            <title>the honours</title>
            <link rel="stylesheet" href="style.css" />
        </head>
        <body>
           <div class="wrapper"><!--your content--></div>
        </body>
    </html>

荣誉

您使用了什么工具来验证HTML?我清理了HTML并编辑了结构。现在没有错误了,谢谢
    </div>

    <div id="section-two">

        <!-- Menu -->
        <div class="six-col">
            <div class="heading">
                <h1>Menus</h1>
            </div>

            <div class="four-col">
                <p>
                    Developed by Head Chef Paul Tamburrini and Martin Wishart himself, <i>The Honours - Edinburgh</i> menu combines seasonal, Scottish flavours 
    in brasserie-influenced dishes.<br />
    <a href="menus.html">&mdash;Find out more </a>
                </p>
            </div>
            <div class="flex_img">
            <img src="images/left_image.jpg" width="460" height="300" />
             <img src="images/right_image.jpg" width="460" height="300" />
            </div>
        </div>

        <!-- Team -->
        <div class="six-col">
            <div class="heading">
                <h1>Team</h1>
            </div>

                <p>
                    Headed up by Paul Tamburrini, Restaurant Manager Steven Spear and Martin Wishart  <i>The Honours - Edinburgh</i> is destined to become one of the country's most talked-about restaurants.<br />
    <a href="team.html">&mdash;Find out more </a> 
                </p>
            </div>




    </div>
<footer>

    <div>
        <h2>Gift Vouchers</h2>
        <p>For <i>The Honours - Edinburgh</i>, or any of Martin's other      great restaurants - Restaurant Martin Wishart and Restaurant at Loch Lomond.<br />
<a href="gift-vouchers.html">&mdash;Purchase here</a></p>
    </div>

        <div>
            <h2>Opening Hours</h2>
            <p>Tuesday - Saturday<br />
<i>Lunch</i> 12:00&mdash;14:30<br />
<i>Dinner</i> 18:00&mdash;22:00<br />
<i>Closed Sunday all day</i><br />
<i>Closed Monday all day</i><br />
    </div>

    <div>
        <h2>Contact Details</h2>
        <p><i>The Honours - Edinburgh</i><br />
58a North Castle Street <br />
Edinburgh EH2 3LU <br />
Telephone 0131 220 2513 <br />
<i><a href="mailto:info@thehonours.co.uk">info@thehonours.co.uk</a></i>    <br />
<span><a href="contact.html">&mdash;Find out more </a></span></p>
    </div>

    <div class="news_column">
        <h2>Newsletter</h2>
        <p>For all the latest news, updates 
and events at <i>The Honours - Edinburgh</i>,
simply enter your details and 
you will receive our exclusive 
newsletter direct to you inbox<br />
<a class="newsletter" href="sign-up.html">&mdash;Sign up</a></p>    
    </div>
<img src="images/footer.jpg" alt="footer">

</footer>
<!DOCTYPE html>
    <html lang="en">
        <head>
            <meta charset="UTF-8">
            <title>the honours</title>
            <link rel="stylesheet" href="style.css" />
        </head>
        <body>
           <div class="wrapper"><!--your content--></div>
        </body>
    </html>