Mobile app version of vmapp.org
Login or Join
Merenda212

: META Tags not first in Head? I am using Dreamweaver Templates on my site and they work well. However, I have always read that it is best to have meta tags as high in the <head> as

@Merenda212

Posted in: #MetaTags

I am using Dreamweaver Templates on my site and they work well. However, I have always read that it is best to have meta tags as high in the <head> as possible if not first. The meta tags that apply site wide I apply to me template as the first set of tags. But when I apply them to page specific tags DW normally sticks them towards the end of the <head> tag. Does it matter if meta tags are at the end of the head?

Note: The meta tags I am referring to would be description, robots, open graph type meta tags.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Merenda212

2 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

There is only one meta element for which the position can be important: charset

<meta charset="utf-8"> <!-- HTML5 -->


This specifies that the character encoding of the web page should be UTF-8 (note that his can be overwritten by HTTP).

Why might the placement be relevant? A parser would have to restart parsing the page as soon as it encounters a meta element with the charset attribute. So it would be efficient to place this element at the top (inside the head).

If you'd place title before that meta element, the parser wouldn't know for sure how to interpret the content (if it contains non-ASCII characters).

10% popularity Vote Up Vote Down


 

@Nimeshi995

It's normally better to try and keep all the METAS near the top but its not essential and its very common for the likes of many open source content management systems and plugs to inject the metas near the bottom of the head.

I believe its not an issue at all and the likes of Google and Yahoo in terms of page speed only request that people use CSS near the top and JS near the buttom and has never reported that metas are a problem and I'm guessing here but if it was a problem I'd know about it. Even when doing w3c validation it reports no issues with position of metas either.

If this was a problem I'd expect to find it reported on W3C.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme