It’s not so hard to set a HTML page’s language declaration with a meta tag, but have you considered what to do if you have a multilingual site or single page? Browsers, search-engines etc., can use this information to display a website better or index more logically. Like many other things, especially when talking about search engine optimization, it is down to the details. Declaring the proper language is one of those – it’s just more professional to do it right.
Meta Tag
<META HTTP-EQUIV="Content-Language" Content="fr">
Multilingual page
<dl > <dt>British English</dt> <dd lang="en-GB">Potato</dd> <dt>U.S. English </dt> <dd>Potato </dd> <dt>German</dt> <dd lang="de-DE">Kartoffel</dd> <dt>French (France)</dt> <dd lang="fr-fr">pommes de terre</dd> </dl>
It’s very simple as you can see above. Read more about the dl, dt and dd tags here at W3.
No comments yet (leave a comment)