Title: WordPress Invalid HTML
Last modified: August 19, 2016

---

# WordPress Invalid HTML

 *  Resolved [theros](https://wordpress.org/support/users/theros/)
 * (@theros)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wordpress-invalid-html/)
 * Hi all!
 * I’m working on this site [here](http://according2us.com/) and I can’t figure 
   out why WordPress is parsing the HTML in such a weird fashion. When you test 
   it for [validation](http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Faccording2us.com%2F)
   you get misplaced <p> and `<a>` tags…
 * How can I fix this?
 * Thanks,
    Eric Huang

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [xamataca](https://wordpress.org/support/users/xamataca/)
 * (@xamataca)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wordpress-invalid-html/#post-804707)
 * Probably has to do with the code inside the index.php theme you are using in 
   that site. And it seems that your “read on” links are causing part of the mess.
   
   Look in your wp-content/themes/”yourtheme”/index.php for: `<?php the_content(
   __('(Read On)')); ?>` And you can read more here: [http://codex.wordpress.org/Customizing_the_Read_More](http://codex.wordpress.org/Customizing_the_Read_More)
 *  Thread Starter [theros](https://wordpress.org/support/users/theros/)
 * (@theros)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wordpress-invalid-html/#post-804709)
 * Okay, I looked through that page…I still can’t figure out what’s causing it. 
   I’m not understanding what I need to change… When I change that line, it always
   gives me a PHP error.
 *  [xamataca](https://wordpress.org/support/users/xamataca/)
 * (@xamataca)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wordpress-invalid-html/#post-804710)
 * Basically your source code shows invalid nested tags:
 * >     ```
   >     <p>
   >     <a href="http://according2us.com/eric/post-title-1/#more-13" class="more-link"></p>
   >     <p>Read On</a></p>
   >     ```
   > 
 * and should be:
 * > `<p><a href="">Read On</a></p>`
 * The problem is at your theme index.php, you got some extra `<p>` somewhere..
 *  Thread Starter [theros](https://wordpress.org/support/users/theros/)
 * (@theros)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wordpress-invalid-html/#post-804712)
 * I resolved the problem. It’s because of the <brs> i was using.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WordPress Invalid HTML’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [theros](https://wordpress.org/support/users/theros/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/wordpress-invalid-html/#post-804712)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
