MCQ Answer

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 है जो दिए गए मान के साथ समाप्त होती है?
Topic : Selectors

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 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz