Vidyalelo
CSS · Q8

CSS Selectors and CSS Files

Programming · CSS · question 8

Q8

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

A.
E[attr^=value]
B.
E[attr$=value]
Answer
C.
E[attr*=value]
D.
none of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
Example: p[title$="!"] {color: red;}