html
element must have a lang
attribute value of valid 2 or 3 letter language code according to ISO specification 639.
html
element's lang
attribute.html
element's lang
attribute and xml:lang
attribute.lang
attributes must be set to the same value.html
element's xml:lang
attribute.lang
attribute(s) to a valid language code.lang
attribute is valid.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>OAC Testfile - Check #49 - Negative</title> </head> <body> </body> </html>
lang
attribute is not valid.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="language" lang="language"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>OAC Testfile - Check #49 - Positive</title> </head> <body> </body> </html>