Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Writing Effective Alt Text | Working with Images and Visual Content
HTML Text and Media Foundations

bookWriting Effective Alt Text

The alt attribute provides alternative text for users who cannot see the image. This includes people using screen readers, users with slow internet connections, or those who have images turned off in their browsers. Always include descriptive alt text for informative images and use empty alt attributes for decorative ones. By doing so, you ensure that everyone can understand the content and purpose of your images, regardless of how they access your site.

index.html

index.html

copy

Good alt text is concise and describes the image's function or content. Avoid phrases like "image of..." and never leave alt attributes out. Instead, focus on what the image conveys or the task it helps the user accomplish. This makes your site more accessible and helps users who rely on alternative text to fully understand your content.

Note
Note

Common mistake: using the same alt text for every image or omitting it entirely. This reduces accessibility and can confuse users relying on screen readers.

question mark

What is the main purpose of the alt attribute on an <img> element?

Select the correct answer

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 2

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Awesome!

Completion rate improved to 6.25

bookWriting Effective Alt Text

Glissez pour afficher le menu

The alt attribute provides alternative text for users who cannot see the image. This includes people using screen readers, users with slow internet connections, or those who have images turned off in their browsers. Always include descriptive alt text for informative images and use empty alt attributes for decorative ones. By doing so, you ensure that everyone can understand the content and purpose of your images, regardless of how they access your site.

index.html

index.html

copy

Good alt text is concise and describes the image's function or content. Avoid phrases like "image of..." and never leave alt attributes out. Instead, focus on what the image conveys or the task it helps the user accomplish. This makes your site more accessible and helps users who rely on alternative text to fully understand your content.

Note
Note

Common mistake: using the same alt text for every image or omitting it entirely. This reduces accessibility and can confuse users relying on screen readers.

question mark

What is the main purpose of the alt attribute on an <img> element?

Select the correct answer

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 2
some-alt