3

我已经开始过渡到 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>
4

1 回答 1

2

在我看来是正确的。

规范说:

section 元素表示通用文档或应用程序部分。在这种情况下,部分是内容的主题分组,通常带有标题。

于 2012-04-14T18:57:48.780 回答