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.
Set the placeholder
value of your text input to cat photo URL
.
placeholder
attribute to the existing text input
element placeholder
attribute to cat photo URL
Prev: 17. Create a Text Field