I was wondering what does the xml:lang attribute do and what are it’s values in HTML5. and does the xml:lang attribute have any restrictions?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As the standards draft explains in 3.2.3.3 The
langandxml:langattributes, it is the XML variant of the standardlangattribute, specifying the natural language of the document. It can take any value defined by BCP47. Note however that you may only use thexml:langattribute if you either have an XML document or also define thelangattribute, and in the latter case they must have the same value. This is becausexml:langis allowed only to ease transition of old XHTML documents: