Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære 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

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 2

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Awesome!

Completion rate improved to 6.25

bookWriting Effective Alt Text

Stryg for at vise menuen

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

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 2. Kapitel 2
some-alt