Oh, my dear students, my dear students, I have been having a blast.
I hope you have to.
I hope you've been following along.
I hope you dance sometimes, because you've got to enjoy what we're doing.
It really is fun.
Okay.
We've learnt a lot so far, but in this section I just want to talk a little bit more about validation ...
form validation.
But before I do, let me just have a sip of coffee.
Wow, that is nice.
It's actually getting very cold here and I'm not a fan of winter as you know, so coffee keeps me
warm.
What are we going to be discussing in this session?
I'm going to keep it brief.
Why am I going to keep it brief?
Well, you already know a lot of the form validation techniques.
We've covered tons of them in this course.
We've used attributes like required,
we've targeted CSS pseudo classes like valid and invalid and required and placeholder-shown.
Etc.
ET cetera.
So you've used a lot of these built in front side validation techniques already, but there's something
we haven't discussed
okay,
when it comes to front side validation. And when it comes to client side validation, there really are
two main categories.
There's built-in validation, which we're going to be talking about very briefly, because we already
have done a lot of that in this course.
But then there's the second type, and that is using JavaScript. And that's what I want to just touch on
in this section.
In fact, or more specifically, I want to talk about the Constraint Validation API because we get objects
like the ValidityState object.
We can write our own custom error messages straight out of the box.
It really, really is simple, but you do have to know a little bit about it in order to obviously
use it, and that's what this section is about.
So we're going to be looking at the Constraint Validation API.
It's not going to be a massive section, it's not going to be too complicated or too long.
Stick with me, stick with me and I'll see you in the next lecture.