Title: validating wp_head script: attribute &quot;type&quot; not specified
Last modified: August 20, 2016

---

# validating wp_head script: attribute "type" not specified

 *  [aliciainbrooklyn](https://wordpress.org/support/users/aliciainbrooklyn/)
 * (@aliciainbrooklyn)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/validating-wp_head-script-attribute-type-not-specified/)
 * I’m currently validating a site XHTML 1.0 Strict. One of my errors is:
 * >  Line 31, Column 40: required attribute “type” not specified
   >  <script src=’/
   > google_analytics_auto.js’></script></head>
   > The attribute given above is required for an element that you’ve used, but 
   > you have omitted it. For instance, in most HTML and XHTML document types the“
   > type” attribute is required on the “script” element and the “alt” attribute
   > is required for the “img” element.
   > Typical values for type are type=”text/css” for <style> and type=”text/javascript”
   > for <script>.
 * This is within the wp_head, but I cannot find anywhere where I can edit it and
   insert the type. What’s more, I do not even have a google analytics plugin installed.
   Could someone please tell me the name of the file at least where I can edit the
   code to add this? I know that it doesn’t make a difference, but I want the site
   to validate. Thanks!

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

 *  [jibbius](https://wordpress.org/support/users/jibbius/)
 * (@jibbius)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/validating-wp_head-script-attribute-type-not-specified/#post-3325157)
 * It’s probably in your theme files.
 * If you download the files, use a tool like notepad++ to search across all files.
 * My guess is header.php or functions.php
 *  Thread Starter [aliciainbrooklyn](https://wordpress.org/support/users/aliciainbrooklyn/)
 * (@aliciainbrooklyn)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/validating-wp_head-script-attribute-type-not-specified/#post-3325171)
 * Thanks for the suggestion. I downloaded the files and didn’t find it. Does anyone
   else have any idea?
 *  [serkan.nyc](https://wordpress.org/support/users/serkannyc/)
 * (@serkannyc)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/validating-wp_head-script-attribute-type-not-specified/#post-3325317)
 * Can you tell me what is your plugins i have the problem if we have concurrent
   plugins i can find that where is it.
 *  [jibbius](https://wordpress.org/support/users/jibbius/)
 * (@jibbius)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/validating-wp_head-script-attribute-type-not-specified/#post-3325318)
 * Are you using a plugin for google analytics?

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

The topic ‘validating wp_head script: attribute "type" not specified’ is closed 
to new replies.

## Tags

 * [script](https://wordpress.org/support/topic-tag/script/)
 * [validate](https://wordpress.org/support/topic-tag/validate/)
 * [W3C](https://wordpress.org/support/topic-tag/w3c/)
 * [wp_head](https://wordpress.org/support/topic-tag/wp_head/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [jibbius](https://wordpress.org/support/users/jibbius/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/validating-wp_head-script-attribute-type-not-specified/#post-3325318)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
