You are here: Re: xml:lang - content-language « HTML « IT news, forums, messages
Re: xml:lang - content-language

Posted by Benjamin Niemann on 11/02/05 13:50

Klaus Trapp wrote:

> what's the difference between
> - http-equiv="content-language" content="de" in a meta-tag and
> - xml:lang="de" in html-tag?
> All my webpages contain german text.

Not much difference. Both specify the default language for the entire
document. xml:lang has the higher priority - if you use both xml:lang (or
lang for HTML docs) and <meta http-equiv="content-language"..> the former
will override the latter.
The xml:lang or lang attribute has the advantage that you can use it on any
element - indicating that a single paragraph or even word has a different
language than the default language.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация