html - Single Section within main -


is having single section within main tag acceptable or redundant?

<main>   <section>     <section>       ...     </section>     <section>       ...     </section>   </section> </main> 

or should put 2 section tags within main... though content within relatable.

also, having <header> within every single section acceptable? classified “a group of introductory or navigational aids”. seems if use i've described, it'd using <h1>-<h6>.

the <section> element used represent group of related content. there shouldn't issue in nesting these tags. make use of other tags <article>, <aside> etc.. idea behind using these elements give more semantic meaning pages, allowing computer browser understand content better.

there no restrictions on how nest them , tags use in them. can have whole set of html tags in them (you can use h1-h6, or other elements).

you might want have @ these articles:

  1. how use html5 sectioning elements
  2. http://html5doctor.com/the-section-element/

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -