Question from the HTML5/CSS3 test

How to select all images in HTML5 with CSS

Hard

Given the following HTML code:

<a href="image.jpg" data-type="image"> Link </a>
<a href="image.gif" data-type="image"> Link </a>
<a href="doc.pdf" data-type="doc"> Link </a>
<a href="image.png" data-type="image"> Link </a>

Which of the following CSS selectors can be used to style only the links to image files? (check all valid solutions):

Author: Jean-marie CléryStatus: PublishedQuestion passed 1628 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!