exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 6 discussion

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

You develop a webpage with a standard input control by using HTML5.
The input control must display the text Enter your given name, as shown below:

When a user selects the input control, the text must disappear.
You need to create the input control.
Which input control should you use?

  • A. <input name="GivenName" value=" Enter your given name" />
  • B. <input name ="GivenName" default=" Enter your given name" />
  • C. <input name="GivenName" text=" Enter your given name" />
  • D. <input name="GivenName" placeholder=" Enter your given name" />
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
The placeholder attribute specifies a short hint that describes the expected value of an input field (e.g. a sample value or a short description of the expected format).
The short hint is displayed in the input field before the user enters a value.
The placeholder attribute works with the following input types: text, search, url, tel, email, and password.
Reference: HTML <input> placeholder Attribute

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
Eran
Highly Voted 4 years, 11 months ago
The question said: "When a user selects the input control, the text must disappear." placeholder doesn't make the text disappear when you select the control, but only when you start typing in the field. So the question should have said "when you start typing in the field" (and the placeholder text will re-appear when you delete and empty the contents of the field)
upvoted 6 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 ...