Qusनिम्नलिखित में से कौन सा चयनकर्ता E के उन सभी तत्वों का चयन करता है जिनमें विशेषता attr है जो दिए गए मान के साथ समाप्त होती है?
A. E[attr^=value]
B. E[attr$=value]
C. E[attr*=value]
D. None of these
Solution
B. E[attr$=value]Explanation
The selector is represented using the E[attr$="value"] syntax. Here, E represents the element type or class, attr represents the attribute name, and "value" represents the desired ending value.
Example:
a[href$=".pdf"] {
/* CSS styles for matching elements */
}