CSS : Child Selector and Descendant Selector

Say, You have a large HTML document with multiple <P> tags and nested <Strong> tags, a new requirement comes that in <P> tags all the <strong> tags that are direct child of <p> should have Green color and all other <strong> tags that are not direct child but descendant should have Red color. You might like to use…

0