WordPress.org

Ready to get started?Download WordPress

Forums

Incorrect html generated (2 posts)

  1. samwillc
    Member
    Posted 3 years ago #

    Hi everyone,

    When I add a link category, I have noticed that the generated html is incorrect as follows:

    <li id="linkcat-4" class="linkcat"><h2>Test</h2>
    	<ul class="xoxo blogroll">
    <li><a href="#" title="test link">test link</a></li>
    
    	</ul>
    </li>

    Is this normal as the page wont validate? The

  2. tags should be inside the
      tags. Even:

      <h2 id="linkcat-4" class="linkcat">Test</h2>
      	<ul class="xoxo blogroll">
      <li><a href="#" title="test link">test link</a></li>
      </ul>

      would be better. Can I edit this in one of the php files so I can get the desired output.

      Thanks,

      Sam.

  • samwillc
    Member
    Posted 3 years ago #

    Sorry, my tags were stripped out of my post. I meant the li tags should be within the ul tags, not outside.

    Thanks,

    Sam.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags