Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

refer to the image of an external stylesheet. you attach the stylesheet…

Question

refer to the image of an external stylesheet. you attach the stylesheet to an html document. when the document is loaded into a web browser, the paragraph text displays as black instead of navy as defined in the stylesheet. why? 1 body { 2 font - family: segoe ui, tahoma, sans - serif; 3 } 4 p 5 color: navy; 6 } 7 the text on line 4 is missing a curly bracket after the p selector the text color should be defined in the body selector, not the p selector text color cannot be defined using an external stylesheet the text on line 5 should be text - color: navy;

Explanation:

Brief Explanations

In CSS, when defining styles for an element (like the <p> tag here), the correct syntax requires curly brackets {} after the selector. Line 4 has p without the opening curly bracket ({). This syntax error would cause the browser to fail to apply the color: navy; rule properly. The other options are incorrect: text color can be defined in the p selector (so the second option is wrong), text color can be defined using an external stylesheet (third option is wrong), and the correct property for text color in CSS is color (not text - color, so the fourth option is wrong).

Answer:

The text on line 4 is missing a curly bracket after the p selector.