how to select element based on name in css code example Example: css attribute selector a[target="_blank"] { background-color: yellow; } /*w3schools*/