私はHTML5とWAI-ARIAを使用して自分のHTMLのアクセシビリティを向上させています。<aside>要素を<section role = "main">要素内で使用できますか?
次の設定は問題ありませんか?
<!-- 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>
私は<section>
の外<aside>
要素とrole="main"
コンテナを持っていなければならない場合、私はのわからない事があります。それは重要ですか?
この質問のタイトルは誤解を招くものです。それはあなたが持っているコードが '' –
Inigo
の中に '