Jestem w trakcie ulepszania dostępności w moim kodzie HTML za pomocą HTML5 i WAI-ARIA.Czy można użyć elementu <aside> w elemencie <section role = "main">?
Czy można skonfigurować następujące ustawienia?
<!-- main content -->
<section id="main" role="main">
<h1>The main content</h1>
<!-- This div needs to be here for styling reasons -->
<div class="the-content">
<p>All the text that goes with the main content</p>
</div>
<!-- the sidebar -->
<aside id="sidebar" role="complementary">
<h2>A title</h2>
<p>Some text</p>
<aside>
</section>
Rzecz nie jestem pewien, czy powinien to mam element <aside>
poza tym <section>
i pojemnik role="main"
. Czy to ma znaczenie?
Tytuł tego pytania jest mylący. Oznacza to, że pytasz o umieszczenie elementu '
Zaktualizowałem tytuł, dzięki za splamienie. – shrewdbeans