exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 10 discussion

Actual exam question from Microsoft's 70-480
Question #: 10
Topic #: 4
[All 70-480 Questions]

You are developing an HTML5 web form to collect feedback information from site visitors.
The web form must display an INPUT element that meets the following requirements:
✑ Allow numeric values between 1 and 10.
✑ Default to the value of 5.
✑ Display as a slider control on the page.
You need to add the INPUT element to the form.
Which HTML element should you add?

  • A. Rating (Between 1 and 10): <input type="number" name="rating" min ="1" max="10">
  • B. Rating (Between 1 and 10): <input type="number" name="rating" min="1" max="10" default="5">
  • C. Rating (Between 1 and 10): <input type="range" name="rating" min="1" max="10" default="5">
  • D. Rating (Between 1 and 10): <input type="range" name="rating" min="1" max="10" value="5">
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
input type="range"
The <input type="range"> is used for input fields that should contain a value within a range.
Depending on browser support, the input field can be displayed as a slider control.

Example -
<form>
<input type="range" name="points" min="0" max="10"/>
</form>

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Chidhu
Highly Voted 5 years, 11 months ago
Answer is D, there is no default property.
upvoted 27 times
...
Piggas
Highly Voted 5 years, 10 months ago
Answer is D. No default property.
upvoted 16 times
...
Dani_Kalunga
Most Recent 4 years, 5 months ago
The correct answer is D,there is no default attribute
upvoted 1 times
...
Labious
4 years, 7 months ago
Answer is D
upvoted 2 times
...
elevator44
4 years, 11 months ago
Opening Microsoft Edge and using https://www.w3schools.com/html/tryit.asp?filename=tryhtml_default C code sets slider in the middle value in any range and doesn't change when modifying "default" property. D code sets range slider to the point what is set to the "value" property.
upvoted 1 times
...
Rz_rahgozar
5 years, 1 month ago
Answer is C as there is Default , but just shows in IE
upvoted 1 times
...
Ravindu
5 years, 4 months ago
Answer is D
upvoted 4 times
...
TonyBezerra
5 years, 5 months ago
The correct answer is: D. There is no default property. The correct property is value.
upvoted 6 times
...
piroman
5 years, 6 months ago
Answer is D.
upvoted 8 times
...
Etnic
5 years, 7 months ago
D is correct.
upvoted 11 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...