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 { }\t<img id=\logo\ src=\ka.jpg\>
#logo { }\t<img class=\logo\ src=\usc.jpg\>
.portrait { }\t<img class=\portrait\ src=\ginny.jpg\>
.logo { }\t<img id=\portrait\ src=\sal.jpg\>
In CSS, an ID selector is denoted by a '#' followed by the ID name and it selects an element with a specific ID. A class selector is denoted by a '.' followed by the class name and it selects all elements with that class. So, #portrait selects the element with id "portrait", #logo selects the element with id "logo", .portrait selects elements with class "portrait" and .logo selects elements with class "logo".
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 { } matches <img id="portrait" src="sal.jpg">
#logo { } matches <img id="logo" src="ka.jpg">
.portrait { } matches <img class="portrait" src="ginny.jpg">
.logo { } matches <img class="logo" src="usc.jpg">