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

Given the following code:```htmlName: ```Which type of form validation is used?
C) JavaScript
A) VBScript
B) CSS
D) HTML

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

Actual exam question for WGU's WGU (KVO1) Web Development Applications exam
Question #: 10
Topic #: 3
[All WGU (KVO1) Web Development Applications Questions]

Given the following code:

```html

Name:

```

Which type of form validation is used?

Show Suggested Answer Hide Answer
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

---

Contribute your Thoughts:

0/2000 characters
Agustin
7 hours 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.
upvoted 0 times
...
Jestine
5 days ago
I'm not entirely sure, but I remember something about HTML forms using JavaScript for client-side validation.
upvoted 0 times
...
Stephaine
11 days ago
I think the validation is done using JavaScript since the function `validateForm()` is called in the `onsubmit` attribute.
upvoted 0 times
...
Joaquin
16 days 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.
upvoted 0 times
...
Mose
2 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.
upvoted 0 times
...
Malcom
2 months ago
I'm not entirely sure, but I remember something about HTML forms using JavaScript for client-side validation.
upvoted 0 times
...
Tegan
2 months ago
I think the answer might be C) JavaScript since the `onsubmit` attribute is calling a function.
upvoted 0 times
...

Save Cancel