Title: Validation errors in &#039;dns-prefetch&#039; codes
Last modified: September 1, 2016

---

# Validation errors in 'dns-prefetch' codes

 *  [ivorysoap76](https://wordpress.org/support/users/ivorysoap76/)
 * (@ivorysoap76)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/validation-errors-in-dns-prefetch-codes/)
 * Here is an example, but I have quite a few.
 * Error Line 36, Column 43: end tag for “link” omitted, but OMITTAG NO was specified
   
   <link rel=’dns-prefetch’ href=’//s.w.org’> You may have neglected to close an
   element, or perhaps you meant to “self-close” an element, that is, ending it 
   with “/>” instead of “>”.
 * Anyone know how to fix these?
    Thank you! Deanna

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

 *  [Rajesh Soni](https://wordpress.org/support/users/rajeshsoni/)
 * (@rajeshsoni)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/validation-errors-in-dns-prefetch-codes/#post-7692019)
 * Site URL please?
 *  Thread Starter [ivorysoap76](https://wordpress.org/support/users/ivorysoap76/)
 * (@ivorysoap76)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/validation-errors-in-dns-prefetch-codes/#post-7692025)
 * littlehouseinthesuburbs.com
 * Thank you!
    Deanna
 * Here’s the validator report: [https://validator.w3.org/check?uri=http%3A%2F%2Flittlehouseinthesuburbs.com%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices](https://validator.w3.org/check?uri=http%3A%2F%2Flittlehouseinthesuburbs.com%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices)
 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/validation-errors-in-dns-prefetch-codes/#post-7692026)
 * HTML5 is fault tolerant, so minor markup errors like that don’t impact browser
   display or SEO.
 * You do need to fix missing closing divs and other errors that will impact layout.
   Read the validator report and carefully look at the html and php in your theme
   files. And make sure you have valid code in any post/pages you have edited in
   the WordPress editor.
 * That particular error you mention above can be fixed by unhooking DNS prefetch,
   but that can slow your site. Add
 * `remove_action( 'wp_head', 'wp_resource_hints', 2 );`
 *  to your theme’s functions.php file.
 * But, you’re using Thesis, a premium theme not supported in these forums. So you
   need to get help from Thesis to edit their unique theme files.

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

The topic ‘Validation errors in 'dns-prefetch' codes’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/validation-errors-in-dns-prefetch-codes/#post-7692026)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
