02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

Search engines, Images and You

The web is visual but search engines don't really read images very well (Although they do read images) they don't do a great job at it our job as SEO experts is to help search engines understand what is inside of the images and at the same time add value to users with impaired sight. We will learn all about how to make our images more accessible for search engines and users.

Video Transcript

00:00Okay, that makes sense. Yeah, I
00:03Want to learn a couple more attributes now that we know what attributes are now one of the stuff is what would happen if by?
00:09Mistake we didn't have an image here and our image was we had a spelling error
00:14So let's start with that if we had some sort of a spelling error and let's say we put here to an image
00:19It just doesn't exist and we go into our browser and we click on refresh
00:24We'll see that we have here this weird question mark because it couldn't find our file. No different browsers will render it differently
00:30But sometimes the file won't load not because the name wasn't right sometimes
00:34I won't load because you're running it on a server and the file just couldn't load and we want to and
00:39Sometimes you have again blind users or people that can't see or search engines
00:43I don't really know what's inside of an image
00:45We really want to tell the browser the most that we can to make it easier for both users and search engines
00:52To know what do we mean by by this image now to do that the way we do it is very very simple in our
00:57Code itself we're going to meet another attribute and by the way because line breaks
01:03Don't mean anything in HTML. We could very easily break a line here just for aesthetics just to make it easier for us to look at things
01:11So that's completely it's as if I didn't put a line break. It's completely fine completely legal
01:15We don't have to worry about it. So the attribute I want to learn about is alt
01:20Which is basically alternative copy?
01:23Alternative text so the alternative text I could put here is basically the copy
01:26I want here for blind users and search engines to know the meaning of that of that image
01:32So in our case because the image didn't load well, let's say here
01:35XML training well, let's put type here the best
01:39the best
01:41XML training on discount
01:43Alright, so we got here a little bit of extra information make it a little bit smaller
01:47So it's everything is on the screen at the same time
01:49So the best XML training on discount and if I click on save and we go to the browser and we click on refresh
01:55We're gonna see that if we put our mouse over the image and most browsers at least
02:02In our case, it's not working on Safari for some reason, but we should have got it that extra information
02:08That's just a copy. But even if you don't see it, don't worry about it. One of the stuff is also in
02:13Blind people will see it search engines will see it most browsers in our case
02:18It's kind of embarrassing because I thought we would see it just by rolling over it
02:21But in our case Safari is not as smart I guess and it doesn't give us that extra information

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!