HTML Output Prediction Medium +20 XP
Input Placeholder
What attribute shows hint text inside an input?
HTMLRead-only
<input type="text" placeholder="Enter your name">
What is the output?
Show answer and explanation
Answer: placeholder
The placeholder attribute shows grey hint text inside the input field when it is empty.
Hint: It's the attribute name in the tag.
What this challenge tests
Output Prediction in HTML: forms, inputs.