Title: Validation Errors
Last modified: August 19, 2016

---

# Validation Errors

 *  [mandrill](https://wordpress.org/support/users/mandrill/)
 * (@mandrill)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/validation-errors-5/)
 * This is the first in a series of validation errors I’m getting with a theme that
   I’ve developed. I’ll add more in this thread as I come to them.
 *     ```
       #  Error  Line 164, Column 23: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
   
       <div class="more-link">Continue reading &raquo;</div>
   
       ✉
   
       The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
   
       One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
       # Error Line 165, Column 3: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
   
       <p></a></p>
   
       ✉
   
       The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
   
       One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
       ```
   
 * Thiss seems to be being genrated byt the following code in the index.php of my
   theme:
 *     ```
       <div class="entry-content">	
   
       			<?php the_content( __( '<div class="more-link">Continue reading &raquo;</div>', 'your-theme' )  ); ?><!-- .more-link -->
   
       			<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'your-theme' ) . '&after=</div>') ?>
   
       		</div><!-- .entry-content -->
       ```
   
 * I can’t seem to track down the closing tag that seems to cause the second validation
   problem.
 * any suggestions gratefully recieved.

Viewing 1 replies (of 1 total)

 *  Thread Starter [mandrill](https://wordpress.org/support/users/mandrill/)
 * (@mandrill)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/validation-errors-5/#post-1289567)
 * I’ve managed to get rid of the validation error, it breaks how I want the link
   to be displayed though (on a line of its own on the left at the bottom of the
   post extract):/

Viewing 1 replies (of 1 total)

The topic ‘Validation Errors’ is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [mandrill](https://wordpress.org/support/users/mandrill/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/validation-errors-5/#post-1289567)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
