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

Getting our webpage to pass the W3c CSS Validator

Sites that don't have errors have a better chance of climbing up the search results on google. As such we want to validate that what ever bugs/errors we get with our Validate CSS as well.

Video Transcript

00:01All right, so let's jump right in we have already our new updated site
00:05Which has a lot more copy and it's time for us to go back into the website auditor and in website auditor
00:11What I want to do is I first want to refresh everything
00:14So I'm gonna click on update just to get the latest information making sure I don't have any broken links updating the size of my HTML
00:20File so I'm just gonna click on that. Oops, not rebuild
00:22I'm gonna click on that update really quickly and I'm gonna update all the information and now I'm definitely willing to let Google know that
00:29My site exists. So I'm gonna just let all the all the elements
00:32Call at the same time and once this is complete
00:35We'll just make sure that we don't have anything standing out that is really really bad
00:38And if everything is fine
00:40We'll go back into the website report itself into the web page report and start modifying and tweaking it and if already we're waiting
00:47Another thing let's let me ask you a few questions eat tomorrow in the meantime as it's loading instead of waiting
00:52Oh and it's done, but I'll ask you anyways. I want to ask you a question anyways, so
00:56One of the stuff is obviously all the stuff that we're doing right now all these scores and checking that error that we don't have errors
01:02And such is this SEO or it's also really for your users
01:07Well, it's also for your users because you would like to you're basically approaching people not machines
01:15Very very true
01:16And you'll notice that almost all the SEO work that we're doing is really focused on people and it's less focused on Google
01:22We are kind of asking Google what it's expecting
01:25But we're not doing like a list of cheat sheets like most SEO companies do
01:30To be honest. I've never met an SEO company that doesn't have a cheat sheet. We don't have a cheat sheet
01:34We're just checking what are the top 10 results and trying to modify our content to be acceptable into that top 10
01:41basically learning from the top 10 now one thing that I'm seeing here is that the
01:45CSS validator is telling me that I have one CSS error now
01:49I usually don't care about CSS errors too much
01:51But if it's only one let's take a peek and see if it's anything that's a easy to take care of
01:56So we can see that start we have one following error error value font weight
02:01None is not a font weight value. So font weight
02:04None is not a font value and it seems fair enough because it seems like saying that we shouldn't be doing so I'm gonna go into
02:11line
02:12198
02:14Back into my editor into the style line
02:18198 and literally that's at the process of fixing as you're fixing things. So 198 is right here
02:25So font weight none
02:27So I think the we were going for and I don't remember it by heart. What are the options for font weight?
02:33So what we could do is literally just copy the font weight go right into the browser
02:37even if you're not a very experienced developer in CSS just search for Google for CSS font weight and I'm sure one of the
02:45First results is gonna plop out all the different options and we're again leaning on the W3C schools
02:50Which is as we just found as I just found out for me tomorrow not long ago
02:55Not really the W3C and we could see that it's normal and not none
02:59so I'm gonna click on normal grab normal go right back into my application and
03:04change it from
03:05None to normal and we're gonna save that and I'm gonna go right back into our our
03:11Cyberduck click on upload again
03:14Upload the CSS style and again every time I change something
03:18It's really important to go back into your website itself
03:21Click into the page itself and refresh it to make sure that still everything seems to look okay
03:26So if I'm gonna scroll through everything, I'm not seeing any major change. I'm happy although
03:31We probably would want to test this in various browsers
03:33We're not gonna do that right now because it's just out of scope of our work right now
03:37But I am going to click on refresh to see if we got rid of all of our errors and we can see congratulations
03:43No errors found. We're really happy
03:45And again, this is one of those powers of using the valid that using the website auditor is that it shows us all the important
03:51Elements, so I'm just gonna update one last time and instead of updating internal factors external factors
03:58I'm just gonna do internal factors and structure and code
04:01I'm just gonna update the CSS because it's the only thing that change so our update will be a little bit faster
04:06And so it is and we can see that we don't have any CSS errors anymore, and we are very happy about that
04:13All right, our HTML code grew a bit to 3k, which is fine because our site grew as well
04:18So now that we know our page is okay
04:20We could always if we wanted to again go into our edit our flat view layout and see if there's anything else
04:25That's important for us from a structure perspective
04:28To be aware of as we're going through this and as I'm looking at this
04:31I don't see here anything that's critical for our structure right now, and that's what we're worried about
04:36So I'm not gonna add anything else into our tables. I just wanted to check and make sure so really everything that's important for us
04:42We sort it out our page is now valid and clean all that's left is to run our
04:47webpage report another time and see if there's anything else we want to tweak and optimize in it before we wrap up this page and
04:53Call it a day for website auditor in the next video what we're gonna
04:57Do is we're gonna do exactly that we're gonna open up a new report again similar to what we did about an hour ago
05:03And see if there's anything we need want or need to do to improve our score which we're gonna do immediately

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!