
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Select Elements with a Specified Attribute and Value using CSS
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,
Example:
<!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>
Advertisements