Ajax-loader-large-white
About You
Placeholders

Nice work! Now that we can see the text field, let's improve its usability.

Right now, the text field doesn't have a label, which could make it confusing for others. We can use the placeholder attribute to fix that.

The placeholder attribute displays instruction text in a text field. This is the grey text you see in a text field that disappears when you start typing.

<input type="email" placeholder="Email">

Let's add some placeholder text to our email <input> element.

Instructions

Inside your <input>, add the following :

placeholder="Email"
?
Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

Change your email input from this:

<input type="email">

to this:

<input type="email" placeholder="Email">
index.html
project
View Preview