Solve problem "Add Placeholder Text to a Text Field" online - Learn Python 3 - Snakify

Lesson: HTML5 and CSS

Add Placeholder Text to a Text Field

Your placeholder text is what appears in your text input before your user has input anything.

You can create placeholder text like so:

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

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


The content on this page is licensed under Attribution-ShareAlike 4.0 International. Original authors: freeCodeCamp, the content was modified.