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
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
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
Thanks! Your explanation and the link were quite helpful. :)
You’re welcome!