Let’s talk about placeholder, format indication and accessibility.

Short and simple version: don't placeholders to communicate input format indication.

In this example, from a real I filled a couple of days ago, the birthdate expected format is indicated with placeholder: YYYY-MM-DD. As soon as the user starts typing, it disappears. If they forget the expected format, they must erase their input just to see the format indication again.

 Visual tip about accessibility in form design, stating “Placeholders should not be used for format indication.” Shows a birthdate input field with a disappearing date format placeholder and a user confused about the format. Caption emphasizes that input formats should be persistent and visible.
0

If you have a fediverse account, you can quote this note from your own instance. Search https://front-end.social/users/stephaniewalter/statuses/114268376836698505 on your instance and quote it. (Note that quoting is not supported in Mastodon.)