Skip to content

Commit

Permalink
Additional roles from HTML and ARIA
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienGardeur committed Jul 30, 2024
1 parent 513f60b commit 06a88a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ A publication <strong class="rfc">must</strong> include a [`duration`](https://r
```json
"links": [
{
"rel": "alternate",
"rel": "related",
"href": "guided.json",
"type": "application/guided-navigation+json"
}
Expand Down
11 changes: 8 additions & 3 deletions roles.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,30 @@

| Role | EPUB type equivalent | ARIA role | HTML element | Definition |
| ---- | -------------------- | --------- | ------------ | ---------- |
| `article` | | | `<article>` | Represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable |
| `aside` | [`aside`](https://www.w3.org/TR/epub-ssv-11/#sec-asides) | | `<aside>` | Secondary or supplementary content. |
| `audio` | | | `<audio>` | Embedded sound content in a document. |
| `blockquote` | | | `<blockquote>` | Represents a section that is quoted from another source. |
| `caption` | | | `<caption>` or `<figcaption>` | A caption for an image or a table. |
| `cell` | [`table-cell`](https://www.w3.org/TR/epub-ssv-11/#sec-tables) | `cell` | `<td>` | A single cell of tabular data or content. |
| `complementary` | | `complementary` | | A supporting section of the document, designed to be complementary to the main content at a similar level in the DOM hierarchy, but remains meaningful when separated from the main content. |
| `definition` | | `definition` | `<dd>` | A definition of a term or concept. |
| `definition` | [`glossdef`](https://w3c.github.io/epub-specs/epub33/ssv/#h_glossaries) | `definition` | `<dd>` | A definition of a term or concept. |
| `figure` | [`figure`](https://www.w3.org/TR/epub-ssv-11/#sec-figures) | `figure` | `<figure>` | An illustration, diagram, photo, code listing or similar, referenced from the text of a work, and typically annotated with a title, caption and/or credits. |
| `header` | | | `<header>` | Represents introductory content, typically a group of introductory or navigational aids. |
| `heading` | | `heading` | `<h1>` through `<h6>` | A heading for a section of the page. |
| `image` | | `img` | `<img>` | Represents an image. |
| `list` | [`list`](https://www.w3.org/TR/epub-ssv-11/#sec-lists) | `list` | `<ul>` or `<ol>` | A structure that contains an enumeration of related content items. |
| `listItem` | [`list-item`](https://www.w3.org/TR/epub-ssv-11/#sec-lists) | `listitem`| `<li>` | A single item in an enumeration. |
| `main` | | `main` | | Content that is directly related to or expands upon the central topic of the document. |
| `math` | | `math` | `<math>` | Content that represents a mathematical expression. |
| `navigation` | | `navigation` | `<nav>` | Represents a section of a page that links to other pages or to parts within the page: a section with navigation links. |
| `region` | | `region` | | content that is relevant to a specific, author-specified purpose and sufficiently important that users will likely want to be able to navigate to the section easily and to have it listed in a summary of the page. |
| `preformatted` | | | `<pre>` | Represents preformatted text which is to be presented exactly as written. |
| `region` | | `region` | | Represents content that is relevant to a specific, author-specified purpose and sufficiently important that users will likely want to be able to navigate to the section easily and to have it listed in a summary of the page. |
| `row` | [`table-row`](https://www.w3.org/TR/epub-ssv-11/#sec-tables) | `row` | `<tr>` | A row of data or content in a tabular structure. |
| `section` | | | `<section>` | Represents a generic standalone section of a document, which doesn't have a more specific semantic element to represent it. |
| `table` | [`table`](https://www.w3.org/TR/epub-ssv-11/#sec-tables) | `table` | `<table>` | A structure containing data or content laid out in tabular form. |
| `term` | | `term` | `<dfn>` or `<dt>` | A word or phrase with a corresponding definition.|
| `term` | [`glossterm`](https://w3c.github.io/epub-specs/epub33/ssv/#h_glossaries) | `term` | `<dfn>` or `<dt>` | A word or phrase with a corresponding definition.|
| `video` | | | `<video>` | Embedded videos, movies, or audio files with captions in a document.|

## Inherited from DPUB ARIA 1.0

Expand Down

0 comments on commit 06a88a4

Please sign in to comment.