

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
Selects all elements with rel=”nofollow” with 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-smodel- 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>
- Related Questions & Answers
- Selects all elements with CSS
- Selects all elements with alt attribute with CSS
- Selects all elements with class="mydemo" with CSS
- Selects all <div> elements and all <p> elements with CSS
- Selects all <p> elements inside <div> elements with CSS
- Selects all elements with a lang attribute value starting with "en" with CSS
- Selects all elements with alt attribute containing the word "Tutorials" with CSS
- Selects specific elements like <p> with CSS
- Selects all <p> elements that are placed immediately after <div> elements with CSS
- How jQuery selects elements using CSS?
- Selects all <p> elements where the parent is a <div> element with CSS
- Selects the element with id="tutorials" with CSS
- Style all <input> elements with a valid value with CSS
- Style all <input> elements with an invalid value with CSS
- Overlap Elements with CSS
Advertisements