“在这种情况下,元素边栏不允许作为元素主体的子元素。”

时间:2012-04-17 15:05:15

标签: html5 validation sidebar

我不太清楚为什么会出现这个问题,或者它根本就是一个问题。有任何想法吗? 第33行,第10列:在此上下文中,元素侧栏不允许作为元素主体的子元素。

<body>
<header>
    <a id="logo" href="#"><img src="img/logo.png"></a>
    <nav>
        <ul>
            <li><a href="#">BLOG</a></li>
            <li><a href="#">WORK</a></li>
            <li><a href="#">ABOUT</a></li>
            <li><a href="#">CONTACT</a></li> 
        </ul>
    </nav>
</header>

<div id="container">
    <div id="headline">
        <h1>Headline</h1>
    </div><!-- end headline -->
    <div id="postinfo">
        <p>by me<br />15 April 2012</p>
    </div><!-- end postinfo -->
    <div id="postentry">
        One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. "What's happened to me? " he thought. It wasn't a dream.
    </div><!-- end postentry -->
</div><!-- end container -->

<sidebar>

1 个答案:

答案 0 :(得分:2)

HTML5中没有元素<sidebar> - 几年前从早期草稿中删除了它。请考虑改为使用<aside>