exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 58 discussion

Actual exam question from Microsoft's 70-480
Question #: 58
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="range" name="rating" min="1" max="10" value="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="number" name="rating" min="1" max="10" default="5">
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Daniel_Stubkjaer
Highly Voted 5 years, 6 months ago
The default attribute is not a valid attribute for type="range", https://www.html5tutorial.info/html5-progress.php https://www.w3schools.com/tags/att_input_type_range.asp The right answer is B.
upvoted 23 times
...
SGT
Highly Voted 5 years, 3 months ago
@Daniel_Stubkjaer You are right, value="5" is the default for type="range"
upvoted 7 times
...
Rz_rahgozar
Most Recent 4 years, 7 months ago
The default attribute works at IE :)
upvoted 1 times
beznika
4 years, 6 months ago
No it doesn't...change it to 2 and it will still be in the middle. Value works in IE and other browsers...
upvoted 2 times
...
...
Ravindu
4 years, 9 months ago
Answers is B
upvoted 7 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago