CSS Attribute Value Selector

The [attribute=value] selector targets elements with a specific attribute value.

Preview

Code

<style>
input[type="text"]{
border:2px solid #2563eb;
}
</style>

<input type="text" placeholder="Text input">
<input type="password" placeholder="Password">

More CSS Attr Selectors Examples (8)