Loading…

What is attributes in CSS and how they used?

It is used to select elements with a specified attribute. It is possible to add css that have specific attributes or attribute values.

It is used to select elements with an attribute value containing a specified word.

Example

                                        

a[href="#"] {
background-color: yellow;
}

Suggest An Answer

No suggestions avaliable!

Latest post from CSS interview questions

Ask Question