Complex Images

Back to Overview
00:00 --> 00:08
For the next section, let's talk about complex images. And complex images, they can be a little

00:08 --> 00:16
bit daunting because there's often a lot to describe. And there are newer things and newer

00:16 --> 00:23
technologies that can help, but this is like the gist, the high level information on that. And if

00:23 --> 00:30
have more questions on that, you know, we're happy to, to answer them. So as a little bit of an

00:30 --> 00:37
history thing in here, long descriptions, this used to be a thing where you link out from your

00:39 --> 00:45
image, there was a long desk attribute that linked to a different HTML page that had a

00:45 --> 00:54
long description, but no browser properly supports that. So forget that that longdesc exists, but

00:54 --> 01:00
the concept is still good. Like you have the description, you have a short description in

01:00 --> 01:07
the alternative text, and then you have longer description somewhere else. I think that's just

01:07 --> 01:18
there. So in this case, we have this first quarter visitors to example.com websites, and then you

01:18 --> 01:25
have different websites, site one, site two, site three, and you have the different quarters in there.

01:29 --> 01:38
That makes all sense. And then in this case, the alternative text is just

01:40 --> 01:47
like firstwatervisitors2example.com. And then you have the image description, which you can

01:47 --> 01:54
click on and you get to a new page that has the long description, like in this case, an overview,

01:54 --> 02:01
the chart shows this and that, then the individual values, so users can get information on that, and

02:01 --> 02:10
then information on the presentation of that specific bar chart. And that's useful, and that

02:10 --> 02:19
gives everyone a way to read that. And the reason why I think this is one of the best practice

02:19 --> 02:29
approaches is that everyone benefits from this. Not everyone might make the right conclusions

02:29 --> 02:35
from this or understand what the colors mean or people might be colorblind and stuff like that.

02:35 --> 02:39
So you have all these different considerations. Having a dedicated

02:39 --> 02:45
page that explains the complex image is always a good call.

02:45 --> 03:00
Yeah, you can, and this is basically what we did. We added a link right after the image that links to this description.

03:00 --> 03:04
You can use figure and caption for that as well.

03:05 --> 03:15
And you can also, you know, if you have the information on the same page, you can basically also put that information into the alt attribute.

03:15 --> 03:22
as well, like see below for the description. Um, and then people can go, uh, underneath.

03:25 --> 03:31
Yeah. And that's, that's basically what's going on here. Uh, and it's, uh, pretty, uh, pretty

03:31 --> 03:42
straightforward. Um, yeah. And, uh, basically what you also can do is of course, put the description

03:42 --> 03:49
directly on the page. This is using aria-describedby and honestly, I don't think you should do this.

03:49 --> 03:58
So I will skip this too because this is like... So the problem is, and I will just say it like,

03:58 --> 04:07
this uses aria-describedby to basically pull all this information as a description here.

04:07 --> 04:13
And the issue with description is it will first read the alternative text as a label or as an

04:13 --> 04:19
accessible name. And then there will be like short pause, like, you know, half a second or something

04:19 --> 04:25
like that. And then it will just start and read the whole like paragraph in there. And there's

04:25 --> 04:34
no way to pause or to skip around in the text in case you missed something, you know, go, go

04:36 --> 04:44
half a sentence back in time. You can't do any of that with aria-describedby. So I would not use

04:44 --> 04:53
aria-describedby in this way these days. So just ignore that, I guess.