Analyze the below code snippet:

<html>
    <head>
        <style>
            p{
                color:yellow;
            }
        </style>
    </head>
    <body>
        <p style="color:orange">CSS Selector</p>
    </body>
</html>

What will be the color of the text in the paragraph, when it is rendered in the browser?

yellow
orange
black
Nothing will be displayed as inline CSS and embedded CSS both are used
Verified Answer
Correct Option - b

To get all Infosys Certified React Associate Exam questions Join Telegram Group https://bit.ly/infy_premium_group

Telegram

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in

Updated on Thu, 31 Jul 2025