-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrole-elements-structure.html
143 lines (140 loc) · 6.05 KB
/
role-elements-structure.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Exemples d'éléments de structuration du contenu - Démonstrations en accessibilité - Stratis</title>
<link rel="icon" type="image/gif" href="favicon.ico"/>
<link rel="stylesheet" href="css/github.css">
<link rel="stylesheet" href="css/knacss.css">
<link rel="stylesheet" href="css/screen.css">
<link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" href="css/all.min.css">
</head>
<body>
<a href="index.html">Retour à l'accueil</a><br/>
<a href="demo-sr.html">Retour au sommaire</a><br/>
<div class="stand-alone interactive">
<header role="banner">
<h1>Exemples d'éléments de structuration du contenu</h1>
</header>
<main>
<section class="wrap">
<h2>Page de contenu</h2>
<div class="grid grid-cols-2 has-gutter">
<div>
<h3>HTML</h3>
<div class="demo">
<h2>Tableau</h2>
<table>
<caption>Exemple de tableau</caption>
<thead>
<tr>
<th>Identifiant</th>
<th>Nom</th>
<th>Prénom</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Dupont</td>
<td>Jean</td>
</tr>
<tr>
<td>2</td>
<td>Smith</td>
<td>John</td>
</tr>
</tbody>
</table>
<h3>Listes</h3>
<ul>
<li>Item 1</li>
<li>Item 2
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</li>
<li>Item 3</li>
</ul>
<h4>Image</h4>
<img src="images/cloud-rain-solid.svg" alt="nuage et pluie" width="16">
</div>
</div>
<div>
<h3>ARIA</h3>
<div class="demo">
<p role="heading" aria-level="2">Tableau</p>
<div role="table" aria-labelledby="table-caption">
<p id="table-caption">Exemple de tableau</p>
<div role="rowgroup">
<div role="row">
<span role="columnheader">Identifiant</span>
<span role="columnheader">Nom</span>
<span role="columnheader">Prénom</span>
</div>
</div>
<div role="rowgroup">
<div role="row">
<span role="cell">1</span>
<span role="cell">Dupont</span>
<span role="cell">Jean</span>
</div>
<div role="row">
<span role="cell">2</span>
<span role="cell">Smith</span>
<span role="cell">John</span>
</div>
</div>
</div>
<p role="heading" aria-level="3">Listes</p>
<div role="list">
<div role="listitem">• Item 1</div>
<div role="listitem">• Item 2
<div role="list" style="margin-left: 20px">
<div role="listitem">• Item 1</div>
<div role="listitem">• Item 2</div>
<div role="listitem">• Item 3</div>
</div>
</div>
<div role="listitem">• Item 3</div>
</div>
<p role="heading" aria-level="4">Image</p>
<span class="fas fa-cloud-rain" role="img" aria-label="nuage et pluie"></span>
</div>
</div>
</div>
<h3>Non reproductible avec ARIA</h3>
<div class="demo">
<h4>Listes ordonnées</h4>
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<h4>Liste de définitions</h4>
<dl>
<dt>Firefox</dt>
<dd>Un navigateur Web…</dd>
<dd>Petit panda roux…</dd>
</dl>
<dl>
<dt>Firefox</dt>
<dt>Fx, Ff</dt>
<dd>Un navigateur Web…</dd>
</dl>
<h4>Citations</h4>
<h5>Citation en ligne</h5>
<p>Le jeune homme s'écria <q>Mais que ce passe-t-il ?</q> en ouvrant la porte violemment.</p>
<h5>Citation en bloc</h5>
<blockquote><p>Avec des si, on mettrait Paris en bouteille.</p></blockquote>
</div>
</section>
</main>
</div>
</body>
</html>