MacBook Pro 16"
€2.499
Torne o conteúdo visual compreensível para todos os usuários
€2.499
<!-- ❌ Ruim: textos alt não descritivos -->
<img src="laptop.jpg" alt="image" />
<img src="star-icon.svg" alt="star.png" />
<img src="success-icon.svg" alt="success.svg" />€2.499
<!-- ✅ Bom: textos alt descritivos -->
<img src="laptop.jpg"
alt="MacBook Pro 16 pouces, vue de face,
écran ouvert montrant l'interface macOS" />
<!-- Ícone decorativo: alt vazio, .sr-only para contexto -->
<img src="star-icon.svg" alt="" />
<span>
<span class="sr-only">Note de </span>4.8/5
<span class="sr-only"> étoiles</span> (127 avis)
</span>
<!-- Ícone decorativo em notificação -->
<img src="success-icon.svg" alt="" />
<span>Commande confirmée !</span>Explicação: Texto alternativo permite que leitores de tela descrevam imagens. Devem ser descritivos para imagens informativas, vazios para imagens decorativas.
<!-- ❌ Ruim: vídeo com reprodução automática -->
<video width="100%" height="200" autoplay loop muted>
<source src="demo.mp4" type="video/mp4">
Votre navigateur ne supporte pas la vidéo.
</video><!-- ✅ Bom: vídeo acessível com legendas e controles -->
<video width="100%" height="200"
controls
preload="metadata"
aria-describedby="video-description">
<source src="demo.mp4" type="video/mp4">
<!-- Legendas para deficientes auditivos -->
<track kind="captions"
src="captions.vtt"
srclang="fr"
label="Français"
default>
<!-- Descrições em áudio para deficientes visuais -->
<track kind="descriptions"
src="descriptions.vtt"
srclang="fr"
label="Description audio">
<!-- Alternativa com link para transcrição -->
Votre navigateur ne supporte pas la vidéo.
<a href="transcript.html">Consulter la transcription</a>
</video>
<div id="video-description">
Vidéo de 2 minutes présentant les fonctionnalités du MacBook Pro.
Sous-titres en français disponibles.
</div>Explicação: Vídeos devem ter legendas, controles acessíveis por teclado e não devem reproduzir automaticamente.
<!-- ❌ Ruim: gráfico sem descrição ou dados alternativos -->
<svg width="300" height="150" viewBox="0 0 300 150">
<rect
x="50"
y="100"
width="40"
height="40"
fill="#3b82f6"
/>
<rect
x="110"
y="80"
width="40"
height="60"
fill="#3b82f6"
/>
<rect
x="170"
y="60"
width="40"
height="80"
fill="#3b82f6"
/>
<rect
x="230"
y="40"
width="40"
height="100"
fill="#3b82f6"
/>
</svg>| Trimestre | Vendas (k€) | Evolução |
|---|---|---|
| T1 2025 | 40 | - |
| T2 2025 | 60 | +50% |
| T3 2025 | 80 | +33% |
| T4 2025 | 100 | +25% |
<!-- ✅ Bom: gráfico acessível com dados alternativos -->
<svg width="300" height="150"
role="img"
aria-labelledby="chart-title"
aria-describedby="chart-desc">
<title id="chart-title">Graphique en barres des ventes trimestrielles</title>
<desc id="chart-desc">
Évolution croissante des ventes sur 4 trimestres :
Q1: 40k€, Q2: 60k€, Q3: 80k€, Q4: 100k€
</desc>
<!-- Barras do gráfico -->
<rect
x="50"
y="100"
width="40"
height="40"
fill="#3b82f6"
/>
<rect
x="110"
y="80"
width="40"
height="60"
fill="#3b82f6"
/>
<rect
x="170"
y="60"
width="40"
height="80"
fill="#3b82f6"
/>
<rect
x="230"
y="40"
width="40"
height="100"
fill="#3b82f6"
/>
<!-- Rótulos acessíveis -->
<text x="70" y="130">Q1</text>
<text x="130" y="130">Q2</text>
<text x="190" y="130">Q3</text>
<text x="250" y="130">Q4</text>
</svg>
<!-- Tabela alternativa com todos os dados -->
<table>
<caption>Données détaillées des ventes trimestrielles</caption>
<thead>
<tr>
<th scope="col">Trimestre</th>
<th scope="col">Ventes (k€)</th>
<th scope="col">Évolution</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Q1 2025</th>
<td>40</td>
<td>-</td>
</tr>
<!-- ... outras linhas -->
</tbody>
</table>Explicação: Gráficos devem ser acompanhados de descrições textuais e dados alternativos para usuários que não podem vê-los.