-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2copia.html
155 lines (149 loc) · 5.16 KB
/
index2copia.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
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns#">
<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 lang="es">Título</title>
<meta name="description" content="Description" />
<meta name="keywords" content="keyword, keyword, keyword" />
<meta property="og:title" content="Title" />
<meta property="og:description" content="Description" />
<meta
property="og:url"
content="https://xurxe.github.io/aria-labelling-test"
/>
<meta
property="og:image"
content="https://source.unsplash.com/collection/1889046/1200x630"
/>
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<link href="./global.css" rel="stylesheet" />
<script
src="https://kit.fontawesome.com/6e00428cbd.js"
crossorigin="anonymous"
></script>
<style>table,td,th{ border: 1px solid black; border-collapse: collapse;}</style>
</head>
<body>
<header>
<h2>Page Header</h2>
<nav><a href="#">Page 1</a> | <a href="#" aria-current="page">Page 2</a></nav>
</header>
<aside style="margin: 1rem; border: 2px solid black; padding: 0.2rem; width: fit-content">
<h3><a href="#footer">More info</a></h3>
<p>This is <a href="https://uxdesign.cc/the-troubled-state-of-screen-readers-in-multilingual-situations-f6a9da4ecdf3">based on an experiment by an author from <img title="UX Collective" src="https://miro.medium.com/v2/resize:fill:48:48/1*mDhF9X4VO0rCrJvWFatyxg.png" width="24" height="24" loading="lazy"></a></p></aside>
<nav aria-label="Usted está aquí" lang="es">Experimento > <a href="#" aria-current="page">Página actual</a></nav>
<main>
<h1>Different accessible labelling methods</h1>
<ol>
<li>
<p lang="es">Este botón tiene <code>aria-label</code>:</p>
<button aria-label="Close">
<span aria-hidden="true">X</span>
</button>
</li>
<li>
<p lang="es">
This button has <code>aria-label</code> and an explicit
<code>lang</code> attribute:
</p>
<button lang="es" aria-label="Cerrar">
<span aria-hidden="true">X</span>
</button>
</li>
<li>
<p>
This button has <code>aria-labelledby</code>, and the visually
hidden label is outside in Spanish:
</p>
<button aria-labelledby="lalala1">
<span aria-hidden="true">X</span>
</button>
<span id="lalala1" class="visually-hidden" lang="es">Cerrar</span>
</li>
<li>
<p>
This Spanish button has <code>aria-labelledby</code>, and the visually
hidden and <code>aria-hidden</code> label is outside:
</p>
<button aria-labelledby="lalala2" lang="es">
<span aria-hidden="true">X</span>
</button>
<span id="lalala2" class="visually-hidden" aria-hidden="true"
>Close</span
>
</li>
<li>
<p>
This button has <code>aria-labelledby</code>, and the visually
hidden label is inside:
</p>
<button aria-labelledby="lalala3">
<span aria-hidden="true">X</span>
<span id="lalala3" class="visually-hidden">Close</span>
</button>
</li>
<li>
<p>
This button has <code>aria-labelledby</code>, and the visually
hidden and <code>aria-hidden</code> label is inside:
</p>
<button aria-labelledby="lalala4">
<span aria-hidden="true">X</span>
<span id="lalala4" class="visually-hidden" aria-hidden="true"
>Close</span
>
</button>
</li>
<li>
<p>This button has a visually hidden label inside:</p>
<button>
<span aria-hidden="true">X</span>
<span class="visually-hidden">Close</span>
</button>
</li>
</ol>
<p>Example of abbreviations, such as <abbr>Mr.</abbr>, <abbr>fig.</abbr>, <abbr>Wed.</abbr></p>
<table>
<caption>CAT Editor</caption>
<tr>
<th scope="col" lang="en">EN</th>
<th scope="col" lang="es">ES</th>
<th scope="col">Status</th>
</tr>
<tr>
<td>Hello</td>
<td>Hola</td>
<td>100</td>
</tr>
<tr>
<td>Bye</td>
<td>Adiós</td>
<td>90</td>
</tr>
</table>
<details lang="es">
<summary lang="es">Traducción de palabra</summary>
<p lang="en">Word</p>
</details>
<dl>
<dt>Lemma</dt>
<dd lang="es">Casa</dd>
<dt role="term">Part of Speech</dt>
<dd lang="es" role="definition">Sustantivo femenino</dd>
</dl>
</main>
<footer aria-labelledby="data-source" id="footer">
<h2 style="text-indent: -1000px" id="data-source" lang="es">Fuente de datos</h2>
Check out the
<a
href="https://github.com/xurxe/accessible-labelling-multilanguage-experiment"
>GitHub repository</a
>
for test results!
</footer>
</body>
</html>