콘텐츠연합플랫폼
클라이언트개발부 지성봉
<tag role="keyword">
<div role="navigation">
list of role keywords
<tag aria-*="value">
<button aria-expanded="false" aria-controls="sect1">
use native HTML
Add ARIA
developing keyboard interface
<div class="header">
<h1>ARIA Landmarks Example</h1>
</div>
<div class="navigation">
<ul><li><a>...</a></li>...</ul>
</div>
<div class="main">
<h2>Banner Landmark</h2>
<div class="tab-container">
...
</div>
</div>
<div class="sidebar">
<h2>Landmarks</h2>
</div>
<div class="sidebar">
<h2>Related W3C Documents</h2>
</div>
<div class="footer">
Copyright
</div>
<header> <!-- banner landmark -->
<h1>ARIA Landmarks Example</h1>
</header>
<nav> <!-- navigation landmark -->
<ul>...</ul>
</nav>
<main> <!-- main landmark -->
<h2>Banner Landmark</h2>
<section> <!-- region landmark -->
...
</section>
</main>
<aside> <!-- complementary landmark -->
<h2>Landmarks</h2>
</aside>
<aside> <!-- complementary landmark -->
<h2>Related W3C Documents</h2>
</aside>
<footer> <!-- contentinfo landmark -->
Copyright
</footer>
<div class="header" role="banner">
<h1>ARIA Landmarks Example</h1>
</div>
<div class="navigation" role="navigation">
<ul><li><a>...</a></li>...</ul>
</div>
<div class="main" role="main">
<h2>Banner Landmark</h2>
<div class="tab-container" role="region" aria-label="Coding Tequniques">
...
</div>
</div>
<div class="sidebar" role="complementary" aria-labelledby="id3">
<h2 id="id3">Landmarks</h2>
</div>
<div class="sidebar" role="complementary" aria-labelledby="id4">
<h2 id="id4">Related W3c Documents</h2>
</div>
<div class="footer" role="contentinfo">
Copyright
</div>
<div class="tab-menu">
<a href="#tab-panel1">HTML</a>
<a href="#tab-panel2">CSS</a>
<a href="#tab-panel3">JavaScript</a>
</div>
<div class="tab-panels">
<div id="tab-panel1">
<h3>HTML</h3>
...
</div>
<div id="tab-panel2">
<h3>CSS</h3>
...
</div>
<div id="tab-panel3">
<h3>JavaScript</h3>
...
</div>
</div>
<div class="tab-menu" role="tablist">
<a href="#tab-panel1" role="tab">HTML</a>
<a href="#tab-panel2" role="tab">CSS</a>
<a href="#tab-panel3" role="tab">JavaScript</a>
</div>
<div class="tab-panels">
<div id="tab-panel1" role="tabpanel">
...
</div>
<div id="tab-panel2" role="tabpanel">
...
</div>
<div id="tab-panel3" role="tabpanel">
...
</div>
</div>
<div class="tab-menu" role="tablist">
<a id="tab1" href="#tab-panel1" role="tab"
aria-controls="tab-panel1" aria-selected="true">HTML</a>
<a id="tab2" href="#tab-panel2" role="tab"
aria-controls="tab-panel2" aria-selected="false">CSS</a>
<a id="tab3" href="#tab-panel3" role="tab"
aria-controls="tab-panel3" aria-selected="false">JavaScript</a>
</div>
<div class="tab-panels">
<div id="tab-panel1" role="tabpanel"
aria-labelledby="tab1">
...
</div>
<div id="tab-panel2" role="tabpanel"
aria-labelledby="tab2" aria-hidden="true">
...
</div>
<div id="tab-panel3" role="tabpanel"
aria-labelledby="tab3" aria-hidden="true">
...
</div>
</div>
Key | Function |
---|---|
Tab |
|
Right Arrow |
|
Left Arrow |
|
Home | Moves focus to the first tab and activates it |
End | Moves focus to the last tab and activates it |
you can use jQueryUI, github, wai-aria 사례집, etc...
PDF 다운로드 / Transcript 보기
publisher@publisher.name