HTML5 Article LIst -


i have coded html5 list of articles. have been searching if correct way use new html5 semantic tags, still unsure. markup correct in terms of using semantics?

<section>    <article>       <h2>article</h2>       <p>description of article</p>    </article>    <article>       <h2>article</h2>       <p>description of article</p>    </article>    <article>       <h2>article</h2>       <p>description of article</p>    </article> </section> 

yes that's fine, although better if <section> had heading, e.g.

<section>    <h1>article list</h1>    <article>       <h2>article</h2>       <p>description of article</p>    </article>    ... </section> 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -