lang
attribute(s).
html
element must contain a lang
attribute.
lang
attribute allows assistive technology to orient and adapt to the pronunciation and syntax that are specific to the language of the page. This attribute may also play a major role in the emerging global, multi-lingual, simultaneous translation Web environment.
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
type
of document.html
element's lang
attribute.html
element's lang
attribute and XML:lang
attribute.html
element's XML:lang
attribute.lang
attribute(s).lang
attribute(s) to the html
element.html
element has a lang
attribute.
<?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 #48 - Negative</title> </head> <body> </body> </html>
html
element missing a lang
attribute.
<?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"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title xmlns="http://www.w3.org/1999/xhtml" >OAC Testfile - Check #49 - Positive</title> </head> <body> </body> </html>