change css based on attribute value code example Example: css attribute selector a[target="_blank"] { background-color: yellow; } /*w3schools*/