How does Attribute Selector work in CSS?
We can set style using attribute or its value. Set Style using attribute : – Syntax: – Selector [attribute] { CSS ;} Ex: – div [id] { color: red; } Set style using attribute and its value: – Syntax: – Selector [attribute = “value”] { CSS } Ex: – div[id=“data”] { color: red; } Set … Read more