NIELIT O Level Exam

Which of the following selector selects all elements of E that have the attribute attr that end with the given value?

Which of the following selector selects all elements of E that have the attribute attr that end with the given value?

निम्नलिखित में से कौन सा चयनकर्ता E के उन सभी तत्वों का चयन करता है जिनमें विशेषता attr है जो दिए गए मान के साथ समाप्त होती है?

A. E[attr^=value]

B. E[attr$=value]

C. E[attr*=value]

D. None of these इनमें से कोई नहीं




Correct Answer is :

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 */
}

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad