Attribute Selectors
Attribute Selectors
Select elements based on attributes or attribute values.
🔸 Examples:
input[type="text"] {
border: 1px solid gray;
}
a[target="_blank"] {
color: red;
}
img[alt] {
border: 2px solid black;
}
Select elements based on attributes or attribute values.
input[type="text"] {
border: 1px solid gray;
}
a[target="_blank"] {
color: red;
}
img[alt] {
border: 2px solid black;
}