How to change the colour of prompt text in a form

I’m sorry I don’t actually know the proper term for this, so I’ll just have to describe it:

When you have a form on a page, the text fields sometimes contain the name of the field, or an example of the answer required (i.e. Name or John Doe, Address or 123 Fake Street). When a user clicks the field, to enter an answer, this text disappears

  1. What is the proper term for this text?

  2. What is it called in CSS?

Thanks!

I think you are referring to the placeholder attribute.

Some related links,

2 Likes

Ah, spot on - thanks!!