Paragraph inside list item test
This test is to determine if the <p>
element is considered valid when placed inside an <li>
element. This is based on the W3C content model, which defines content that must be included as children and descendants of the element.
Example
-
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Nostrum deserunt itaque, amet ipsam placeat ad rerum consequuntur quaerat iste error et reprehenderit ex exercitationem tempore molestiae porro rem eveniet incidunt.
-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Id doloribus voluptatum, perspiciatis dolores neque cum molestias officiis voluptates debitis optio provident dolorum possimus ipsam vero alias, quaerat nemo, soluta officia?
Code
<ul>
<li>
<p>Lorem ipsum dolor...</p>
</li>
<li>
<p>Lorem ipsum dolor...</p>
</li>
</ul>
Results
The <li>
element can contain any flow content.