QUESTION IMAGE
Question
the following table lists selectors in the left column and html tags in the right column. match the selectors to the html tag that they would match.
selector html
#portrait { } <img class=\logo\ src=\usc.jpg\>
#logo { } <img class=\portrait\ src=\ginny.jpg\>
.portrait { } <img id=\logo\ src=\ka.jpg\>
.logo { } <img id=\portrait\ src=\sal.jpg\>
In CSS, an ID selector is denoted by a '#' and is unique to an element on a page. A class selector is denoted by a '.' and can be used on multiple elements. So, #portrait will match <img id="portrait" src="sal.jpg"> as the ID matches. #logo will match <img id="logo" src="ka.jpg"> as the ID matches. .portrait will match <img class="portrait" src="ginny.jpg"> as the class matches. .logo will match <img class="logo" src="usc.jpg"> as the class matches.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
#portrait { } - <img id="portrait" src="sal.jpg">
#logo { } - <img id="logo" src="ka.jpg">
.portrait { } - <img class="portrait" src="ginny.jpg">
.logo { } - <img class="logo" src="usc.jpg">