Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

the following table lists selectors in the left - column and html tags …

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\>

Explanation:

Brief Explanations

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".

Answer:

#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">