Title: Incorrect html generated
Last modified: August 20, 2016

---

# Incorrect html generated

 *  [samwillc](https://wordpress.org/support/users/samwillc/)
 * (@samwillc)
 * [15 years ago](https://wordpress.org/support/topic/incorrect-html-generated/)
 * 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
    -  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.

Viewing 1 replies (of 1 total)

 *  Thread Starter [samwillc](https://wordpress.org/support/users/samwillc/)
 * (@samwillc)
 * [15 years ago](https://wordpress.org/support/topic/incorrect-html-generated/#post-2081524)
 * Sorry, my tags were stripped out of my post. I meant the li tags should be within
   the ul tags, not outside.
 * Thanks,
 * Sam.

Viewing 1 replies (of 1 total)

The topic ‘Incorrect html generated’ is closed to new replies.

## Tags

 * [xhtml](https://wordpress.org/support/topic-tag/xhtml/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [samwillc](https://wordpress.org/support/users/samwillc/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/incorrect-html-generated/#post-2081524)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
