Decision Tree

Back to Overview
00:00 --> 00:06
Okay, and that brings us to the old decision tree because everything I talked about, all

00:06 --> 00:16
these different image types, they come together inside of this old decision tree.

00:16 --> 00:27
And the idea is that you have different questions and they lead you to the decision on which

00:27 --> 00:34
type of image this is and then what type of alternative text you want to have.

00:34 --> 00:38
So the first question is, does the image contain text?

00:38 --> 00:41
If no, you just continue to the next section.

00:41 --> 00:48
And if yes, there is a little bit of like another tree, another distinction there.

00:48 --> 00:51
Is the text also present as real text nearby?

00:51 --> 00:55
So this is real text that I can just select and copy and paste.

00:55 --> 01:00
If that's true, then you want to have the alt attribute empty.

01:00 --> 01:05
If the text is only shown for visual effects, then you want to have an empty alt attribute.

01:05 --> 01:12
So this would be something like a watermark or if you have like, I don't know, your Nike

01:12 --> 01:18
and you have like a Nike pattern on the background of your page somewhere, you don't need to

01:18 --> 01:23
put Nike, Nike, Nike, Nike, Nike into your website.

01:23 --> 01:25
That would be terrible.

01:25 --> 01:31
If the text has a specific function, you're in a functional image and you want to describe

01:31 --> 01:33
what it does.

01:33 --> 01:41
And if the text in the image is not there otherwise, you want to include the image text

01:41 --> 01:51
into the alternative text or maybe do not use an image altogether.

01:51 --> 01:56
Then the second question is if the image is used in link or button and would it be hard

01:56 --> 02:03
or impossible to understand the link or the button, what those do, if the image wasn't

02:03 --> 02:04
there.

02:04 --> 02:10
If that's yes, then you want to use the alt attribute to describe the destination of the

02:10 --> 02:16
link or the action that happens when you click the button.

02:16 --> 02:26
question is, does the image contribute meaning to the current page or context? If yes, then you want

02:26 --> 02:33
to use an old attribute in general. If it's complex, you also want to have like a detailed

02:33 --> 02:42
description somewhere. If it does, but there's other alternative text, redundant alternative

02:42 --> 02:53
real text nearby, then you want to keep the alt empty. And if it is purely decorative or not

02:53 --> 02:59
intended for the user, then you want to use an empty alt attribute. So for example, if you have

02:59 --> 03:05
a single pixel gif that you use as a tracking device, you can do that. And that you don't want

03:05 --> 03:09
people to like stumble over it. So an empty alt attribute is the right thing.

03:11 --> 03:17
And if you still don't know into which categories it goes, then you might need to read through the whole tutorial.

03:19 --> 03:21
Yeah, which, you know, makes sense.

03:21 --> 03:23
Thank you.