TheLeonKing
TheLeonKing

Reputation: 3601

HTML inserting ghost list elements

I've created a list that looks like this:

<ul>
    <li>one<li>
    <li>two</li>
    <li>three</li>
    <li>four<li>
</ul>

But when I view this page in my browser, two extra list elements are inserted, making the code look like this:

<ul>
<li>one</li><li>
</li><li>two</li>
<li>three</li>
<li>four</li><li>
</li></ul>

Does anybody know how this could possibly happen? I tried removing all other code and all stylesheets/scripts, but that doesn't solve the problem either. Any help is greatly appreciated!

Upvotes: 0

Views: 108

Answers (1)

Elow
Elow

Reputation: 597

Missing a closing brackets on your first li and last li

<ul>
    <li>one</li>
    <li>two</li>
    <li>three</li>
    <li>four</li>
</ul>

Upvotes: 2

Related Questions