HiKKe3
HiKKe3
KPCKevin Powell - Community
Created by HiKKe3 on 8/30/2023 in #front-end
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>
<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>
<article>
<section></section>
</article>
And not write it like this:
<section>
<article></article>
</section>
<section>
<article></article>
</section>
Is both ways of using article/section valid for semantic wise?
7 replies