Title: W3C html validation error
Last modified: February 7, 2019

---

# W3C html validation error

 *  [brain8torm](https://wordpress.org/support/users/brain8torm/)
 * (@brain8torm)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/w3c-html-validation-error-2/)
 * If post title name has quotes
 * `<meta itemprop="name" content=""post title"" />`
 * is not valid.
 * You need add htmlentities() to the code:
 *     ```
       // Filter the schema item name
       $item_name = apply_filters( 'comment_rating_field_pro_rating_output_build_average_rating_html_schema_title', htmlentities(strip_tags( $post->post_title )), $group );
       ```
   
 * And this code also gives an error
 * `<label for="rating-star-1">`
 * “The value of the for attribute of the label element must be the ID of a non-
   hidden form control”
 * And if web page doesn’t have a meta tag
 * `itemscope itemtype="http://schema.org/WebPage"`
 * HTML code is not valid too.

The topic ‘W3C html validation error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/comment-rating-field-plugin_f0f0f0.
   svg)
 * [Comment Rating Field Plugin](https://wordpress.org/plugins/comment-rating-field-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/comment-rating-field-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/comment-rating-field-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/comment-rating-field-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/comment-rating-field-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/comment-rating-field-plugin/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [brain8torm](https://wordpress.org/support/users/brain8torm/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/w3c-html-validation-error-2/)
 * Status: not resolved