这是`section` html5标签的正确用法吗?

时间:2012-04-14 18:55:49

标签: html html5 markup

我已经开始转换到html5,并且一直在努力获得section标签的概念以及确切需要使用的位置。我在下面的代码中得到了正确的想法吗?

<body>
<header>
    <h1>Chris Mepham</h1>
    <section id="who">
        <h2>Who am I?</h2>
        <p>I am a freelance web designer and programmer 
        based in Sudbury, Suffolk. I create modern, bespoke 
        websites and applications for businesses in the uk at 
        affordable prices.</p>
    </section>
    <section id="what">
        <h2>What can I do?</h2>
        <p>I can create you a website and put it online! From 
        conseption through to delivering the finished website. 
        I will ensure the site has been created with strict W3C 
        compliance to ensure maximum cross-browser compatibility.</p>
    </section>
    <section id="skills">
        <h2>My Skills</h2>
        <p>List of skills.</p>
    </section>
</header>
</body>

1 个答案:

答案 0 :(得分:2)

对我来说是正确的。

spec说:

  

section元素表示通用文档或应用程序部分。在此上下文中,一个部分是内容的主题分组,通常带有标题。

相关问题