Role of CSS [attribute="value"] Selector

CSSWeb DevelopmentFront End Technology

Use the [attribute=”value”] selector to select elements with a specified attribute and value.

You can try to run the following code to implement the CSS [attribute="value"] Selector. Here, we have considered the attribute as rel,


Live Demo

<!DOCTYPE html>
         a[rel = nofollow] {
            border: 3px solid orange;
      <a href = "" rel="nofollow">Uber's Business Model</a><br><br>
      <a href = "" rel="noreferrer">Share Market</a>
Updated on 23-Jun-2020 16:15:32