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

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 2

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

Awesome!

Completion rate improved to 6.25

bookWriting Effective Alt Text

Sveip for å vise menyen

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

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 2
some-alt