Title: HTML5 Validation
Last modified: August 21, 2016

---

# HTML5 Validation

 *  Resolved [lzs](https://wordpress.org/support/users/lzs/)
 * (@lzs)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/html5-validation-4/)
 * Hi, CRP looks to be a really great plugin! There is one thing that bugs me though,
   and it’s that it won’t pass HTML5 validation because of the Border attribute 
   used in the IMG element. May I suggest to remove it, and if necessary, just apply“
   border: 0” to the CSS class instead.
 *     ```
       --- contextual-related-posts.php	2014-06-12 17:58:10.339583373 -0700
       +++ contextual-related-posts.php.orig	2014-06-12 17:52:03.061001452 -0700
       @@ -813,7 +813,7 @@
        			$postimage = wp_get_attachment_image_src( get_post_thumbnail_id( $result->ID ) , 'full' );
        		}
        		$postimage = apply_filters( $filter, $postimage[0], $thumb_width, $thumb_height, $thumb_timthumb, $thumb_timthumb_q, $result );
       -		$output .= '<img src="' . $postimage . '" alt="' . $title . '" title="' . $title . '" ' . $thumb_html . ' class="' . $class . '" />';
       +		$output .= '<img src="' . $postimage . '" alt="' . $title . '" title="' . $title . '" ' . $thumb_html . ' border="0" class="' . $class . '" />';
        	} else {
        		$postimage = get_post_meta( $result->ID, $thumb_meta, true );	// Check the post meta first
        		if ( ! $postimage && $scan_images ) {
       @@ -833,7 +833,7 @@
        		}
        		if ( $postimage ) {
        			$postimage = apply_filters( $filter, $postimage, $thumb_width, $thumb_height, $thumb_timthumb, $thumb_timthumb_q, $result );
       -			$output .= '<img src="'.$postimage.'" alt="'.$title.'" title="'.$title.'" '.$thumb_html.' class="'.$class.'" />';
       +			$output .= '<img src="'.$postimage.'" alt="'.$title.'" title="'.$title.'" '.$thumb_html.' border="0" class="'.$class.'" />';
        		}
        	}
       ```
   
 * Thanks. 🙂

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

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [11 years, 12 months ago](https://wordpress.org/support/topic/html5-validation-4/#post-5004772)
 * Hi,
 * I can make this change in the next version.
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/html5-validation-4/#post-5005075)
 * Hi, this is implemented in v2.0.0

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

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

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/html5-validation-4/#post-5005075)
 * Status: resolved