SEO // Fix the header - <head> contains <noscript>, internal links with no anchor text and invalid HTML tags
complete
Shirin Sadr
Contains a <noscript> tag and invalid HTML elements which includes an image - noscript <head> should only contain <link> <meta> and <style> elements. Other elements such as images mean most search engine crawlers cannot then render the head, meaning the <head> is broken and further elements can be missed. The <noscript> section could be moved into the body, where <img> can be processed. If <noscript> needs to remain in the head then <img> and other invalid elements need to be moved to <body>.
Ensuring the <head> is kept ‘clean’ prevents the site from being perceived as lower-quality by search engines.
Additionally, it helps to prevent issues with rendering in the future as the site develops.
Ben Kippax
complete
Ben Kippax
Hi Shirin
I definitely agree, it could be better. I can shed some light on what it's doing.
Whilst it isn't great, the code works ... so that's why it's been flagged as an improvement rather than a bug.
having a noscript pixel in your <head> won't affect your SEO ranking on most major search engines, since this is the practice they expect here.
Basically what happens;
We want to add a tracking pixel for a search engine (for google shopping, for instance), but the browser has indicated it has a "NO JavaScript" policy. Instead, an img tag is added to the head which sends a http request, which in turn logs the action instead of of loading a script (which would be blocked by the aforementioned policy)
Shirin Sadr
Ben Kippax: Thanks Ben