WGU Web Development Applications - Web-Development-Applications Exam Practice Test
Question 1
Given the following code:
```html
<form name="Fcrm" action="/aczion.asp" onsubmit="return validateForm()" method="post"> Name: <input type="text" name="name">
<input type="submit" value="Submit">
</form>
```
Which type of form validation is used?
```html
<form name="Fcrm" action="/aczion.asp" onsubmit="return validateForm()" method="post"> Name: <input type="text" name="name">
<input type="submit" value="Submit">
</form>
```
Which type of form validation is used?
Correct Answer: D
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 2
Which structure tag should a developer use for blogs, images, and social media posts?
Correct Answer: D
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 3
Given the following markup:

Where does the image align in relation to the text?

Where does the image align in relation to the text?
Correct Answer: D
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 4
Which HTML elements support the `<script>` tag to invoke JavaScript code?
Choose 2 answers:
Choose 2 answers:
Correct Answer: A,E
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 5
Which structure tag should a developer use to place contact information on a web page?
Correct Answer: B
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 6
Given the following code:
html
Copy
Edit
<!DOCTYPE html>
<html>
<head>
<style>
p { font-family: Georgia, serif; }
</style>
</head>
<body>
<h1>The font-family Property</h1>
<p>The quick brown fox jumps over the lazy dog.</p>
</body>
</html>
Which CSS rule would ensure the heading displays at 16pt size?
html
Copy
Edit
<!DOCTYPE html>
<html>
<head>
<style>
p { font-family: Georgia, serif; }
</style>
</head>
<body>
<h1>The font-family Property</h1>
<p>The quick brown fox jumps over the lazy dog.</p>
</body>
</html>
Which CSS rule would ensure the heading displays at 16pt size?
Correct Answer: A
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 7
Given the following HTML statement:
```html
<div class="example">Example</div>
```
Which CSS rule hides the `<div>` tag when the browser's width is 600 pixels wide or less?
```html
<div class="example">Example</div>
```
Which CSS rule hides the `<div>` tag when the browser's width is 600 pixels wide or less?
Correct Answer: A
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 8
What is an example of a logical expression?
Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).
Question 9
Given the following markup:
```html
<p>This is sample text <img src="sample.jpg"></p>
```
Which style positions the image to the left of the paragraph?
```html
<p>This is sample text <img src="sample.jpg"></p>
```
Which style positions the image to the left of the paragraph?
Correct Answer: C
Explanation: Only visible for Actualtests4sure members. You can sign-up / login (it's free).

