Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

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

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

Explanation:

Brief Explanations

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.

Answer:

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