Do you know what an
em
element is?
What you need to use is, you need to set
em
as the child for
li
elements. The view is the same, but is legal. Like this,
<ol>
<li><em><a href="#logo">Company's logo</a></em></li>
<li><em><a href="#employees">List of employees</a></em></li>
</ol>
This is what you want to use. This would render what you want it to. Plus, it won't show the errors.
One more thing, every element in HTML has a reason, semantic, that you need to follow. If you ever get confused as to whether an element can be a possible child of an element, go to MDN documentation and see for yourself,
<em> - HTML | MDN[
^]