MDN self-hosted library · e01.org

ARIA: separator role

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<h2>My first blog post</h2>
…
<img src="blueline.gif" role="separator" alt="" />
<h2>Two years later, my second post</h2>
…
html
<section role="feed">
  <article>
    <h2>My first blog post</h2>
    …
  </article>
  <hr />
  <article>
    <h2>Two years later, my second post</h2>
    …
  </article>
</section>
css
[role="feed"] > hr {
  height: 3px;
  background-color: blue;
}
html
<div role="separator"><h3>Title of my separator</h3></div>
html
<div role="separator"><h3 role="presentation">Title of my separator</h3></div>
html
<div role="separator">Title of my separator</div>