If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Using simple CSS selectors

Problem

In CSS, how would you select this image by its id?
<img id="mainpic" src="cat.png">
Choose 1 answer:
Stuck?
Stuck?