Child

tag color in HTML

What will be the color of the child p tag contents when the HTML5 snippet given below is rendered?

<p style = "color: green">
        hello 
    <p style = "color: red"> 
            world 
    </p>
</p>
Options
  1. green
  2. red
  3. yellow
  4. black

Related Posts

Close Bitnami banner
Bitnami