문제

The code:

<section id="sec1">
    <h1>header</h1>
    <p>paragraph</p>
    <section id="sec2">section</section>
    <p id="p2">paragraph</p>
</section>

Question: where would be the #p2 element in a document outline? Does it belong to #sec1 or #sec2?

도움이 되었습니까?

해결책

It belongs to #sec1 since it's not in #sec2.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top