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:
Comments
Post a Comment