Question

HTML rendering in ubuntu chromium browser shows wrong

When I load this html...

<ol><li>09522869</li><ol><li><a href="http://localhost/pat_book/cm/rc/1d97c261216923c39d1cf0af9b59966a/09522869_892_1">892_1</li>

    <li><b>892_0&nbsp;&nbsp;&#10004;</b>

</li><li><a href="http://localhost/pat_book/cm/rc/1d97c261216923c39d1cf0af9b59966a/09522869_892_2">892_2</li></ol></ol>

Here in the second 'li' item - I don't add any 'a' tag (anchor tag) but it shows a 'a' tag automatically in chrome browser with href of previous 'li' 'a'

You can see it save above code in a html file and open it in chrome browser

my ubuntu chromium version Version 32.0.1700.107 Ubuntu 12.04 (32.0.1700.107-0ubuntu0.12.04.1~20140204.866.1)

Was it helpful?

Solution

Your HTML is malformed. You are missing closing </a> for both your <a> tags, and you have extra opening <ol> tags:

<ol><li>09522869</li><ol>

If your intent is to nest lists, your sub-<ol> needs to be contained in an <li>:

<ol>
  <li> Item
    <ol>
      <li> Nested item
    </ol>
  </li>
</ol>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top