Problem to solve: Need to use attribute selector in css to change link on different color and image. The following code is not working correctly: ... <style> a { display: block; height: 25px; padding-left: 25px; color:#333; font: bold 15px Tahoma; text-decoration: none; } a[href='.pdf'] { background: red; } </style> ..... <a href="/manual.pdf">A PDF File</a> Which of the following code snippets will correct issue?
Correct Answer: a[href$='.pdf'] { /*css*/ }
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More CSS MCQ Questions