Open this example in the interactive library
Source code
<style>
.demo:placeholder-shown {
background-color: #fef3c7;
}
</style>
<input class="demo" aria-label="City" placeholder="Type your city" />
Emphasize a control that has a hint with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo:placeholder-shown {
background-color: #fef3c7;
}
</style>
<input class="demo" aria-label="City" placeholder="Type your city" />