Skip to content
Justice Tech School

Placeholder, Autofocus and Autocomplete

placeholder shows a hint inside an empty field. autofocus focuses a field on load and autocomplete tells browsers what to fill in. Placeholders do not replace labels.

Example
<label>Email <input type="email" placeholder="you@example.com" autocomplete="email"></label>

Exercise

Focus on load.

<input >

Quiz Test

Can placeholder replace a label?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.