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

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
Mose
17 days 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
22 days ago
I'm not entirely sure, but I remember something about HTML forms using JavaScript for client-side validation.
upvoted 0 times
...
Tegan
27 days ago
I think the answer might be C) JavaScript since the `onsubmit` attribute is calling a function.
upvoted 0 times
...

Save Cancel