Practice mode HTML

Which HTML attribute shows hint text inside an input box until the user starts typing?

Correct answer B. placeholder

Explanation

The placeholder attribute displays a short hint in an empty input field. Unlike value, the hint disappears as soon as the user types.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.