Welcome to WebmasterWorld Guest from 54.162.139.217

Forum Moderators: incrediBILL

Message Too Old, No Replies

Meta Tags - best practice

     
8:06 am on Dec 3, 2012 (gmt 0)

Preferred Member

10+ Year Member

joined:May 9, 2007
posts: 597
votes: 0


Are there any accepted best practice rules for the order in which meta tags are shown in the header?

Eg Title
Meta Tag keywords
Meta Tag description
etc
9:13 am on Dec 3, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 7, 2003
posts:4783
votes: 0


The encoding one (if you have one) should be the first
9:47 am on Dec 3, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


I add the elements within head in this order:

-encoding
-language
-title
-meta description
-rel links, canonical etc.
-robots
-css links
-js links
-inline css (rare)
inline js (rare)


wot? no meta keywords?

No!
10:48 am on Dec 3, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 19, 2002
posts:3294
votes: 27


>> -inline css (rare)

what inline css would be in the header?
11:11 am on Dec 3, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


Errr, "inline" was the wrong word. What I meant was "lines of code rather than a link to a separate file".

I usually put all CSS and JS in external files. Occasionally, very occasionally, there will be a couple of lines of css or js in the head section for something specific to that one page.

Even rarer still will be to add css or js directly to elements in the body.
3:03 pm on Dec 3, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 19, 2002
posts:3294
votes: 27


ok, sorry, i suspected that's what you meant! - thought i might have been missing something though!

me too though, css is in extrenal sheets unless there is something that is so specifically for one page only and then i might code it into the header.
1:52 pm on Dec 4, 2012 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12547
votes: 2


HTML5 specs can be a helpful resource too.
[whatwg.org...]