: Meta attribute, alternatives for SEO optimization I'm working on a web-site that I need to Search Engine Optimize for multiple-languages. I need to provide language specific keywords targeting
I'm working on a web-site that I need to Search Engine Optimize for multiple-languages.
I need to provide language specific keywords targeting the crawler. Someone suggested using <meta name="keywords" ... was a bad idea since crawlers ignored it; they suggested using HTTP headers. Unfortunately I do not know what Header line to use with CGI scripting.
Can this be done using plain HTML5?
What are my options in this regard if I cannot use CGI. (SSI? etc)
More posts by @Kimberly868
1 Comments
Sorted by latest first Latest Oldest Best
The suggestion doesn’t make sense. You can’t specify meta-keywords in an HTTP header. (Only meta elements with an http-equiv instead of a name attribute can alternatively be specified with HTTP headers.)
It’s also not true that you would need CGI for sending an HTTP header. This could be achieved directly within your server configuration, too (for example, mod_headers for Apache).
And there’s nothing "shady" about CGI at all; many sites use PHP, Python etc. to generate/process documents and set HTTP headers.
So, that said:
If you want to use meta-keywords (ignoring the discussion about its usefulness here), simply use it.
If you want to specify the keywords in different languages on the same document, simply add several meta-keywords elements with the lang attribute:
<!-- on the English page, e.g., with 'lang="en"' on the 'html' element -->
<meta name="keywords" content="…"> <!-- using the default language as specified on 'html' or 'head' -->
<meta name="keywords" lang="de" content="…"> <!-- German keywords -->
<meta name="keywords" lang="fr" content="…"> <!-- French keywords -->
But if you have translated documents, you’d typically only include meta-keywords in the respective language.
Linking to translations, as you know, can be achieved by using the link element with the alternate link type and the hreflang attribute:
<link href="/de/" rel="alternate" hreflang="de">
Example
So for a site in English and German, you might want to include this on the English page:
<!-- lang="en" -->
<meta name="keywords" content="…"> <!-- English keywords -->
<link href="/de/" rel="alternate" hreflang="de">
and this on the German page:
<!-- lang="de" -->
<meta name="keywords" content="…"> <!-- German keywords -->
<link href="/en/" rel="alternate" hreflang="en">
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.