Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

WGU (KVO1) Web Development Applications Exam - Topic 3 Question 10 Discussion

Posted by Glennis on May 02, 2026 at 05:31 PM

Given the following code:

```html

Name:

```

Which type of form validation is used?

Suggested Answer: C

> ''The `onsubmit='return validateForm()'` attribute calls a JavaScript function when the form is submitted. If the function returns `false`, submission is prevented.''

>

> This is an example of client-side JavaScript validation. VBScript is outdated and IE-specific; CSS is for styling, and HTML-only validation would not use a JavaScript function.


* MDN Web Docs: HTMLFormElement.onsubmit

* JavaScript Form Validation Guide

---

Get Premium WGU (KVO1) Web Development Applications Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
24 comments · newest first
CH
Cherry 2 days ago
I would choose C) too. It's the most common for this purpose.
LU
Lucina 7 days ago
Right! VBScript is outdated for web forms.
BA
Barrie 12 days ago
I feel like it's a tricky question. But definitely not A) VBScript.
SO
Sonia 18 days ago
Agreed! JavaScript is used for client-side validation.
FI
Filiberto 23 days ago
I think it's C) JavaScript. The `onsubmit` attribute suggests that.
CH
Chuck 28 days ago
HTML alone can't validate forms. It's about interactivity.
CI
Ciara 1 month ago
JavaScript makes sense. It handles form submissions well.
LA
Lashawn 1 month ago
CSS is for styling, not validation. So it's not that.
MI
Mitsue 1 month ago
I feel confident about this question. It's definitely not VBScript.
AN
Angella 2 months ago
Agreed! JavaScript is used for client-side validation.
IV
Ivory 2 months ago
I think it's JavaScript. The function validateForm() looks like a JS function.
CA
Cammy 2 months ago
Not sure about that... could be CSS too, right?
IS
Isaiah 2 months ago
Wait, is HTML even used for validation?
YO
Yolande 2 months ago
Seems like a no-brainer, it's JavaScript.
MA
Mattie 2 months ago
I thought it was VBScript at first.
AJ
Aja 3 months ago
Definitely JavaScript!
LE
Leonida 3 months ago
I could be wrong, but I thought CSS was more for styling, not for form validation. So it must be JavaScript, right?
AG
Agustin 3 months ago
This question seems similar to one we practiced where we had to identify validation methods. I feel like JavaScript is the right answer here.
JE
Jestine 3 months ago
I'm not entirely sure, but I remember something about HTML forms using JavaScript for client-side validation.
ST
Stephaine 3 months ago
I think the validation is done using JavaScript since the function `validateForm()` is called in the `onsubmit` attribute.
JO
Joaquin 4 months ago
I could be wrong, but I thought CSS was more for styling, not for form validation. So, it has to be either JavaScript or HTML.
MO
Mose 5 months ago
This question seems similar to one we practiced where we had to identify validation methods. I feel like JavaScript is the right choice here.
MA
Malcom 5 months ago
I'm not entirely sure, but I remember something about HTML forms using JavaScript for client-side validation.
TE
Tegan 5 months ago
I think the answer might be C) JavaScript since the `onsubmit` attribute is calling a function.
0/2000 characters

Save Cancel