Given an HTML document in a specific language (english).
I have defined a lang attribute on the tag :
<html lang="en">
Some texts in the page are written in another language (for example french) :
<span lang="fr">
blabla...
</span>
But, if I can not identify the language, but I know it is NOT english, can I set "unknown" as a valid value for lang attribute?
<span lang="unknown">
blabla...
</span>
I read this in w3c documentation, but I am not sure if "the default value is [...] unknown" means that "unknown" is a real value...
http://www.w3.org/TR/html4/struct/dirlang.html
lang = language-code [CI] This attribute specifies the base language of an element's attribute values and text content. The default value of this attribute is unknown.
<body lang="en"> This is english. I don't know what language this quote is in: <q>Se trata de españoles</q></body>
. Leaving it blank claims that hte unknown language is English. – Inessive