Paragraph inside list item test

Index page

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

Code

<ul>
  <li>
    <p>Lorem ipsum dolor...</p>
  </li>
  <li>
    <p>Lorem ipsum dolor...</p>
  </li>
</ul>

Dummy link after


Results

The <li> element can contain any flow content.

Index page