This forum is now read-only. Please use our new forums! Go to forums

[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"> ?

Answer 55b181d293767621b7000760

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

points
Submitted by Judy
over 8 years

2 comments

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

Judy over 8 years

You’re welcome!