meta tags inserted into html but not inside "head"

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
bloodl
Forum Commoner
Posts: 48
Joined: Thu Jun 21, 2007 12:33 am

meta tags inserted into html but not inside "head"

Post by bloodl »

Hi,

I noticed that if you insert meta tags into html somewhere in the body tags, the browser still recognizes them. I know its bad practice, but do search engines frown on putting meta tags in the body INSTEAD of the head?

Cheers,
Doug
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Frown upon? No. Meta tags are meaningless, really, and some search engines hardly use them at all. Take Google, for instance. They use meta tags for a lot of search results, but meta tags don't really affect your standing in the results, just how the result is displayed.

The only bad thing about putting them in the body instead of the head is that, firstly, it belongs in the head according to HTML standards, and secondly, search engines do not need to load your entire page to get a gist of what it's about. We don't have any guarantee that search engines will always read the entire page on our websites, or even be able to.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

You should definitely put them in the correct section. To do otherwise is just sloppy and begs for breakage.
bloodl
Forum Commoner
Posts: 48
Joined: Thu Jun 21, 2007 12:33 am

meta tags

Post by bloodl »

hmm thanks for that!

very interesting... I value your feedback guys - i didn't think it would validate

Cheers,
Doug
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Post by JAB Creations »

Yahoo to a limited extent uses meta keywords, keep it at or under seven words however otherwise it's just spam. Google will use meta descriptions which are nifty. Use them correctly and check out pages that have been visited to see what results you get.
Post Reply