Section

I have always learned that the html element section needs a aria-labelledby to be semantic, and without it, it becomes just like a normal "div"
Do you still need the "aria-labelledby" to make a section semantic?
<section aria-labelledby="test">
  <h1 id="test"></h1>
</section>



And also for sections and articles. i have learned that you write it like this to keep it semantic:
<article>
  <section></section>
</article>


And not write it like this:
<section>
  <article></article>
</section>


Is both ways of using article/section valid for semantic wise?
Was this page helpful?