Consider the below code given in respective files:

/* styles.css */
.text-color {
   color: 'greenyellow'
}


<!-- index.html -->
<html>
    <head>
        <style>
            .text-color {
                color: 'orange';
            }
        </style>
        <link src="styles.css" rel="stylesheet"/>
    </head>
    <body>
        <p class="text-color">What would be my color ?</p>
    </body>
</html>

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

greenyellow
orange
black
Error: Cant use both embedded and external styling together
Verified Answer
Correct Option - a

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