Answer the question
In order to leave comments, you need to log in
Nested paragraph selector - why doesn't it work?
There is this HTML code:
<p>Text 1</p>
<p>
<p>Text 1</p>
</p>
<div>
<p>Text 3</p>
</div>
<b>Text 4</b>
<b>
<b>Text 5</b>
</b>
p {color: red;}
p p {color: green;}
div p {color: blue;}
b {color: grey;}
b b {color: blue;}
p p {color: green;}
b b {color: blue;}
Answer the question
In order to leave comments, you need to log in
and you look through the inspector, as a result, the browser renders your layout. A paragraph cannot be nested within a paragraph.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question