Rule 6.20, Components

Name what a search field searches

Default

Rule. Write the searched content in the placeholder, such as Search files.

Why. A named field sets the scope in one glance. A clear control removes text in one press.

Do. The placeholder names the scope. A clear control appears.

Don't. "Search" has no scope and no clear control.