Hi @psiryan,
- A paragraph cannot contain a list:
( <p>
accepts Phrasing content, <ol>
is Flow content )
<p>
<ol start="0">
<li class="ul-header">Sources</li>
<li id="src-1"><a href="http://webmirror.kobran.org/matrixgits/page1.html">http://webmirror.kobran.org/matrixgits/page1.html</a></li>
<li id="src-2"><a href="https://en.wikipedia.org/wiki/Kerberos_saga">https://en.wikipedia.org/wiki/Kerberos_saga</a></li>
<li id="src-3"><a href="https://en.wikipedia.org/wiki/Mamoru_Oshii">https://en.wikipedia.org/wiki/Mamoru_Oshii</a></li>
<li id="src-4"><a href="http://sensesofcinema.com/2004/great-directors/oshii/">http://sensesofcinema.com/2004/great-directors/oshii/</a></li>
</ol>
</p>
MDN documentation:
<p>: The Paragraph element - HTML: HyperText Markup Language | MDN
The HTML <p>
element represents a paragraph of text. Paragraphs are usually represented in visual media as blocks of text that are separated from adjacent blocks by vertical blank space and/or first-line indentation. Paragraphs are block-level elements.
Permitted content: Phrasing content.
MDN documentation:
<ol>: The Ordered List element - HTML: HyperText Markup Language | MDN
The HTML <ol>
element represents an ordered list of items, typically rendered as a numbered list.
Content categories: Flow content, and if the <ol>
element’s children include at least one <li>
element, palpable content.
Permitted parents: Any element that accepts Flow content.
MDN documentation:
Content categories - HTML: HyperText Markup Language | MDN
Phrasing content defines the text and the mark-up it contains. Runs of phrasing content make up paragraphs.
Elements belonging to this category are:
<abbr>
, <audio>
, <b>
, <bdo>
, <br>
, <button>
, <canvas>
, <cite>
, <code>
, <command>
, <data>
, <datalist>
, <dfn>
, <em>
, <embed>
, <i>
, <iframe>
, <img>
, <input>
, <kbd>
, <keygen>
, <label>
, <mark>
, <math>
, <meter>
, <noscript>
, <object>
, <output>
, <progress>
, <q>
, <ruby>
, <samp>
, <script>
, <select>
, <small>
, <span>
, <strong>
, <sub>
, <sup>
, <svg>
, <textarea>
, <time>
, <var>
, <video>
, <wbr>
and plain text (not only consisting of white spaces characters).
A few other elements belong to this category, but only if a specific condition is fulfilled:
<a>
, if it contains only phrasing content
<area>
, if it is a descendat of a <map>
element
<del>
, if it contains only phrasing content
<ins>
, if it contains only phrasing content
<link>
, if the itemprop attribute is present
<map>
, if it contains only phrasing content
<meta>
, if the itemprop attribute is present
Cheers and happy coding