/Responsive Web Design

18. Add Placeholder Text to a Text Field

Placeholder text is what is displayed in your input element before your user has inputted anything.

You can create placeholder text like so:

<input type="text" placeholder="this is placeholder text">

Note: Remember that input elements are self-closing.


Challenge

Set the placeholder value of your text input to cat photo URL.


Prev: 17. Create a Text Field

Next: 19. Create a Form Element