This forum is now read-only. Please use our new forums at discuss.codecademy.com.

About You Forum

View Course » View Exercise

1316 points
0226bbc4527d51fcc7416fe20829e632?s=140&d=retro
Submitted by
ElizabethWestphal_54725aae8c1cccc13e
about 2 years ago

[resolved] Why is Email Capitalized in Placeholder but not in Input Type?

Why is "Email" capitalized after "placeholder" but not after "input type," like this:
<input type="email" placeholder="Email"> ?


1 vote

permalink

Hi ElizabethWestphal,

Try changing the word "Email" in your placeholder -- make it anything you like. It is a message that is displayed to the user and you can be very flexible about it.

The type="email" allows you to choose what sort of input box you want to display so you need to be more careful with that. Here is a link to a page that shows you all of the valid choices for types of input boxes: https://developer.mozilla.org/en/docs/Web/HTML/Element/Input

3691 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
about 2 years ago

2 Comments

0226bbc4527d51fcc7416fe20829e632?s=140&d=retro ElizabethWestphal_54725aae8c1cccc13e about 2 years ago

Thanks! Your explanation and the link were quite helpful. :)

55df2afa95e3787b9200005e_359368177 Judy about 2 years ago

You're welcome!