निर्दिष्ट एट्रिब्यूट और मान वाले एलिमेंट्स चुनने के लिए [attribute = "value"] सिलेक्टर का उपयोग करें।
CSS [attribute = "value"] सिलेक्टर लागू करने के लिए निम्न कोड चलाकर देखें। यहां हमने एट्रिब्यूट rel माना है:
उदाहरण:
<!DOCTYPE html> <html> <head> <style> a[rel = nofollow] { border: 3px solid blue; } </style> </head> <body> <a href = "https://qries.com/What-is-Uber-s-business-model-and-how-does-it-compare-with-Ola-s-model-in-India" rel = "nofollow">Uber's Business Model</a><br><br> <a href = "https://www.qries.com/How-does-share-market-work-in-India" rel = "noreferrer">Share Market</a> </body> </html>