Forum Moderators: open

Message Too Old, No Replies

How important is content-type meta tag?

Just how important is it for the browsers and SEs

         

Propools

9:21 pm on Dec 9, 2008 (gmt 0)

10+ Year Member



Just how important is it for the browsers and the Search Engines to have this meta declaration in the <head> ?
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

or any "meta http-equiv" declaration?

lavazza

9:37 pm on Dec 9, 2008 (gmt 0)

10+ Year Member



For search engines: of little (if any?) importance

For html validation: very important... see w3.org #faq-charset [validator.w3.org]

ETA:

Note: the w3c recommends UTF-8

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

[edited by: encyclo at 11:14 am (utc) on Jan. 19, 2009]
[edit reason] fixed link [/edit]

coopster

9:38 pm on Dec 9, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



How important is it that your server deliver the content as you expect?

[w3.org...]

There is quite a bit of reading in regards to this attribute in that section.

Propools

8:03 pm on Dec 10, 2008 (gmt 0)

10+ Year Member



So, I presume <meta http-equiv=content-type content="text/html; charset=utf-8"> should come first.

What's the difference between these two, if any of significance?

Google Source = <meta http-equiv=content-type content="text/html; charset=utf-8">

Others Source = <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

[edited by: encyclo at 2:18 am (utc) on Dec. 11, 2008]
[edit reason] no specifics please [/edit]

g1smd

1:40 am on Dec 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'd use the latter I think, though browsers shouldn't have trouble with any particular case these days.

encyclo

2:22 am on Dec 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can't just switch between two charset declarations without there being a risk of problems, even when the site is in English - ISO-8859-1 and UTF-8 are not directly interchangeable. For the example meta elements, case doesn't matter, so use either style.

It is not the meta element in itself that is important, what is important is that you declare the actual charset used for the page's content, with via a HTTP header or via a meta charset element.

See: Character encoding, entity references and UTF-8 - A short introduction [webmasterworld.com]

Propools

3:09 pm on Dec 11, 2008 (gmt 0)

10+ Year Member



encyclo,
I'll give the link you laid out a good going over and try to get it straight. ;)

pageoneresults

3:29 pm on Dec 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You can't just switch between two charset declarations without there being a risk of problems, even when the site is in English - ISO-8859-1 and UTF-8 are not directly interchangeable.

Heh! Where were you years ago when we had another discussion about this and I did a find and replace on 500+ pages not realizing that there were going to be encoding issues. That kept me up for a good couple of hours in cleanup mode. I haven't even attempted to do that again. New sites, UTF-8. Previous sites that are not broken, ISO-8859-1. I don't see any reason to change something that has had zero impact on anything that I can think of.

The whole character entity issue is a challenge to say the least. ;)

Propools, I'd do one page at a time. Use the W3 Validator to tell you exactly what is borken. That thing will fail in a heartbeat as soon as it encounters a character issue. It's a different type of FAIL too, not your typical HTML Validation FAIL. :)

Propools

3:49 pm on Dec 11, 2008 (gmt 0)

10+ Year Member



Pageoneresults, I've been running it through the W3 Validator and it seems to like it just fine.
Thanks.
Now that I understand the browser impact I still wonder just how relevant is it to Organic SERPs?