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

Fixing our Links as our first Task

In this session we will fix the links on our page based on the results we got back from our Website Auditor tool.

Video Transcript

00:00Back into our project learn XML now now that we got all this overview
00:04Let's just clean up our our view a bit. So it's easier for us to navigate and we're really just gonna focus
00:10Let me just get rid of everything. We'll just put here the page
00:14and
00:17Broken links, all right, cuz that's really what we're where we want to start from
00:22So I'm gonna click on okay, and you can always go inside and edit it. It just makes life easier
00:25So first of all, we know that we have all these about and affiliate and privacy and all these stuff are not real
00:30Pages, we really want to get rid of them
00:32We just put them there just for the sake of example right now
00:35It automatically found them because we have broken links
00:37So I'm gonna remove this page as well and I'm gonna remove this page as well
00:41And the first thing I want to do is I want to fix this broken link these broken links
00:45So I'm gonna remove that page as well and I'm gonna go into my page itself
00:48I'm gonna click a roll over my broken links. It's gonna show me the four broken links, which are
00:53Flash HTML 5 JavaScript and AdWords. So what I'm gonna do is I'm gonna go into the page itself
00:59I'm gonna open it up in an editor. So if we're gonna let me just find the file again
01:04Here we go. So here's our XML and I'm just gonna call it index
01:08Because that's the file that we're gonna be using in our FTP server and I'm gonna open up an editor right now
01:14Let me just find my sublime text, which is a free editor. You're more than welcome to
01:20Use any editor that you want, but it's a nice free editor. Not that one that one actually is for a
01:27It is it is a paid one being downloaded for free and then they ask you are you willing to pay but it's not
01:33They don't force you know, which is kind of cool. I really like that
01:37They don't force you but they want you to pay which kind of makes sense. Yeah
01:42So I'm gonna open up that I'm gonna open up our HTML file
01:46And literally what I'm gonna do is I'm gonna go find that specific links that go for that go to
01:52To that page. I'm just gonna open up our browser as well
01:55So we have our browser open at the same time as well. I'm just gonna go here learn XML now
02:02com
02:03And we could see that our page is not really
02:09Optimized for Safari. That's good to know
02:14I guess in the first load. Yeah
02:17And we see that there's a broken
02:20There's a broken file. There's a file missing. Okay
02:24All
02:25Right. So first of all, we want to do is want to fix these flash HTML JavaScript and AdWords and we want to just put their links
02:32That are valid links. So what I'm gonna do is I'm gonna take them to different pages on zero to geek comms
02:37I'm just gonna find the pages I want them to go into so I'm just gonna go to zero to geek comm and I'm
02:42Just gonna find the flash page
02:46With my flat flash page will do our developer basics
02:50Which is our really our starting starting point in the training of flash
02:54I'm gonna grab that link go into the editor and I'm just gonna search for flash the link itself. So I'm gonna
03:03Find that link which is right here and I'm gonna just change this link to be our
03:09Direct link to the website and because it's one of our properties. I'm totally cool with giving it some juice
03:15So I'm gonna delete that rel nofollow because I'm fine with giving juice to our main website. All right
03:21Now the site HTML 5 when let's find which link do we want to do for our HTML 5
03:26so I'm gonna go right back and again, if you don't know yet how to work with with
03:31HTML I do encourage you again to go to our basic course where we go through these HTML tags is now it's really critical to
03:37Know these stuff and again, I'm gonna go into I'm gonna pick my HTML training. That's any
03:43Wasn't HTML or HTML 5
03:475 ok, so let me find that that would be in our JavaScript training
03:52One of our last ones is our HTML 5 101
03:56All right, so that we're gonna take users into our HTML 5 101 and we're gonna do the same oats. It's our next one
04:04Which is going to be job?
04:06JavaScript so for JavaScript we're gonna just take them to the main page of JavaScript, which is the zero to JavaScript
04:14And again, it's very simple. All I'm doing is putting real links inside right now
04:17There were just broken links that of not real pages and again because it's my own sites
04:22I actually want to let the juice flow. So I'm gonna get rid of that rail. No follow
04:27Last but not least we want to do this also for our AdWords course and our AdWords course
04:31We actually don't have on zero to geek comms
04:33We actually only have it in our blog, which I think I created a short URL for it, which is smart URL it
04:40AdWords
04:43Yeah, there we go
04:44It takes us to there our coupon codes for for AdWords and it's also lets people know about how could they join our AdWords course?
04:50For free, so I'm gonna go right into the editor and I'm just gonna add here that
04:55short URL
04:58HTTP smart URL it
05:01AdWords and
05:04I'm gonna let the juice flow
05:06We're gonna save that all that's left for us is to actually upload it onto the site and make sure that it works
05:11But before we do that, I already see that and that's you know
05:14One of the stuff that sometimes these tools don't catch is that we have your Twitter
05:18But we don't actually have our actual Twitter here say for Facebook and same for our YouTube
05:24So what we'll want to do is first of all, for example an RSS feed this page doesn't have an RSS feed
05:29But our blog does so I could just set up set it up
05:32So our blog will be our RSS feed so I could or find an RSS feed
05:38Which I will find later because I don't really remember where the RSS feed is
05:42So we'll do that later
05:43But you know what I want to make sure that all the links are valid because you don't want to have a link that
05:46Actually doesn't have a link. Well, it's a valid link, but it's linking to itself and that's not really what you want
05:52so for Twitter, for example, our Twitter is
05:56twitter.com slash zero to geek and I'll just capture the real full URL once it's finished loading and
06:06We want to put that into our Twitter now one thing on the other hand in this scenario because Twitter is not our domain
06:12We don't want to give juice to something. That's not our domain. So I'm gonna put your URL
06:16no
06:18follow
06:20You understand why tomorrow you wouldn't want to share your
06:24No, like we worked really hard to build our juice and the whole point of Twitter is to pull juice into our site
06:30Yeah, if we're giving juice not the other way around and the same is true with Facebook
06:34So let's give us let's put our Facebook URL
06:37All right
06:37So I thought you don't really need to watch me as I'm putting the links in so I just put all the links in and we're
06:42Ready to continue. So the the next thing we want to do is before we even go to the tools
06:46We want to make sure that all of our links are valid. So if we go back into our page itself
06:51I'm just gonna do two things one is I'm gonna go into our page itself. The second thing I'm gonna open back our
06:57Cyberduck or whatever FTP client that you're using and I'm just gonna after I save the file
07:03I'm just gonna grab that HTML file and plop it right into
07:07right into
07:09The FTP and then now we're ready to go back into the browser click on refresh
07:14And just see if our links are valid
07:18So one will see that this link isn't valid yet because we didn't put anything in it
07:22But for our Twitter, we should be good now for our Facebook. We should be good now for our YouTube
07:28We should be good. And so will should we be good for?
07:33Wow, did I click back too much?
07:40Learn some of them now. Well, I have a question in the meanwhile. Yes
07:45When you read that are off opening these links and new windows
07:49No, that's a great idea. You're right from like from a content perspective. So let's do that
07:53We'll make sure that these links open up in new windows
07:56So let's go into our editor
07:58And we'll just add here another and I don't know if we if we talked about it to the students on this book
08:04It's not that hard to learn. So we just add your target and in our target. We're going to add an underscore blank
08:11And it's all we need to do to tell our browser that we want to open it up in a new tab or a new window
08:17It doesn't really matter where you put it as long as it's inside of your a tag
08:20And I'm just gonna make sure that it's gonna be in all of these bottom links, but also inside of our upper links
08:27Because we want users to be able to go back and buy the product without
08:32Without issue for other complications. Yeah, exactly
08:35so I'm gonna put a space there and save that as well and
08:40That as well, all right, so we did that and we could upload that now
08:45And we probably will find that we have a few more issues, but we'll deal with those issues one by one
08:50The next one is I'm testing this locally right now
08:53So one of the stuff that I want to see is first of all that these links are working and they're working
08:58Which is great all these bottom links are working this is working as well
09:02These are supposed to be links as well when I click on it. Let's see what happens nothing happens
09:06So let's try to isolate this and make sure that our experience is working after all if someone comes to our site
09:11And they want to click on flash and they can't they might get discouraged
09:14So one is we could use Firefox to go into firebug and find where this is
09:19We know this is an image
09:20So it's not going to be listed out with copy or we could just scroll inside and try to find where those images are
09:26And we can see that we have our in our PNGs and we can see already that we have some issues that we want to fill
09:30Up that out copy, but we'll deal with that as we progress
09:35But what I want to do right now is I want to make sure that our link them our link itself
09:41Which is right here?
09:44Starting okay. Here it goes. Here's our links
09:46So we want to just make sure that these links correlate with the links underneath
09:49We'll take a small break and I'll update these links making sure that they're going to the right direction
09:53it's really part of that process that you always have to do is making sure that the links work because sometimes even if
09:58There aren't any issues or any error sometimes developers won't even put a link for example the developer right now
10:04He didn't know what link to put in and then you put nothing which is
10:07Kind of a bad practice you want to tell your developer whenever you don't know what link to put inside
10:11Just write inside TBD or something
10:14So it's so it breaks that way when you run tools it tells you this is not valid and you have to correct it
10:20Which is a good a good way of bypassing those type of issues
10:23So we're going to take a small pause and we're going to come back these links will be updated

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!