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

Web Developer: HTML Validation

valid HTML pages are pages that go through a W3C validation. We will see how we can validate the page and get information about what isn't going through the validation. It's easier if you are a developer or you toke our HTML training. Our most important step is we want to validate our content and we want it to pass the validator.

Video Transcript

00:00and we're in the next video.
00:02So last topic that we're gonna be talking about
00:05in the web developer toolkit
00:07is checking that your website is W3C compliant.
00:12That's a big word.
00:13Now, if you're not a developer,
00:14all you really have to do is go into your tools
00:16and you wanna just make sure that you validate the HTML.
00:20Once you click on validate HTML inside of your tools,
00:23it's gonna open up a new window
00:25and it's gonna basically load in your page.
00:27Once it loads in your page,
00:29you're gonna see that right now
00:30the page that we got from our developer
00:32has 10 errors and one warning.
00:34Now, if you're not a developer,
00:35you're not gonna fix it yourself,
00:37but you could very easily grab this URL,
00:39send it to the developer and tell them,
00:41no, this doesn't, it's not approved.
00:43You need to fix these 10 errors
00:44before the site could go live.
00:46Now, deliberately, we put up a site
00:47that isn't good right now because it has issues
00:49because we wanna make sure that you guys are aware
00:51of all these different stuff
00:52that you have to look for when you're building a site.
00:55So when you saw that our site doesn't resize well,
00:57we saw that our site now has HTML errors.
01:00Now, you don't really have to understand the in-depth of it,
01:02but all it really means,
01:03and we'll talk about it really shortly
01:05and we're really not gonna dig into it.
01:09The W3C is basically the organization
01:11that basically came up with the language
01:14that enables the web tab and which is HTML.
01:16You've seen already a few HTML tags
01:18in our previous course,
01:20and if you haven't taken that course yet,
01:22you'll see the link on the bottom of our screen
01:25and you could join it for free
01:28if you take that link on the bottom of the screen.
01:30Now, I'm assuming that you did take it already
01:32and you know some basic HTML,
01:34but not in the level where you could do debugging
01:36and check all these stuff on your own.
01:38The W3C created the language basically
01:41and because they, well,
01:44because they needed a language for displaying text,
01:48and I don't wanna go into the history,
01:49the biggest part of it is that is there are a lot
01:51of browsers out there today,
01:52and all of these browsers adhere
01:54or try to adhere to the W3C specification.
01:58So really, when Google or any search engine
02:00tries to validate and make sure
02:01that your content passes this validation,
02:03they're really trying to make sure
02:05that your content is gonna look good
02:07in all the different browsers that are out there,
02:10and that's really important.
02:11Now, obviously, you wanna do the test yourself as well,
02:13but Google is not literally going to test your site
02:17on every single browser to check how it looks like
02:19in every single browser.
02:21It might in the future,
02:22but one of its main ways that it checks
02:26to see that your content is relevant
02:27and working and passing is using these validators.
02:30So if you don't follow the rules of HTML perbatim
02:33the way that they're supposed to be,
02:34you're gonna have errors,
02:35and if your developer did it,
02:37you don't have to get mad at them,
02:38just send them to the sling and tell them,
02:39well, I don't approve it until I see there's your errors.
02:43You don't have to worry as much about the CSS.
02:45I know you'll find in the tool as well, CSS validation.
02:49You don't have to worry about that as much.
02:51You do wanna worry about links.
02:54So we saw what HTML is,
02:55and basically making sure that our HTML structure is right.
02:58So for example, before we move on
02:59to the next one in that list,
03:01you'll see that it's gonna give us
03:02all these different tidbits of information
03:06of what is wrong here,
03:07and basically it even highlights for the developer
03:09and shows them where the area and what line it is,
03:12so the developer could literally go there
03:14and get even a little bit more information
03:16about what's missing.
03:17For example, here in line 28,
03:19an image element must have an alt archer boot
03:21except under certain conditions.
03:23For details, blah, blah, blah, blah.
03:25What they're basically saying,
03:26and this is really good for SEO,
03:27as you remember when we talked about images
03:29in our HTML part,
03:31is that we wanna always put an alt tag
03:33that basically is an alternative text
03:35that describes what the image is,
03:37and literally it's good for the SEO,
03:39but it's also good for users with disabilities
03:41because then you're communicating with all of your users
03:44and all your different type of users
03:46what are inside of those images.
03:47So although it seems like not a big deal,
03:49it's great that you're getting those errors
03:51and it's making sure that if, for example,
03:52in this type of scenario,
03:53you might wanna go inside yourself and update it
03:55because you could see that if it's just alt,
03:57you could do that yourself
03:58because you know how this works already.
04:01And you know what, it can't hurt for you to try it,
04:03but I, as a business owner,
04:05I don't really have that much time,
04:06so I tend to, if I see any error,
04:09I just push back to the developer
04:10so they'll solve it and they'll figure it out
04:12because it's important for my work process,
04:15but if you're a small organization,
04:17you don't wanna pay your developer again.
04:19Many times you could just go through this
04:21and a lot of times you will find
04:22that they're quite easy to fix
04:23just based on the information that's provided.
04:26All right, Itamar, do you have any questions about that?

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!