{"id":2780,"date":"2016-07-13T15:49:05","date_gmt":"2016-07-13T15:49:05","guid":{"rendered":"https:\/\/www.w3.org\/blog\/International\/?p=2780"},"modified":"2016-07-13T15:49:05","modified_gmt":"2016-07-13T15:49:05","slug":"w3c-html5-validator-enhanced-with-language-detection-functionality","status":"publish","type":"post","link":"https:\/\/www.w3.org\/blog\/International\/2016\/07\/13\/w3c-html5-validator-enhanced-with-language-detection-functionality\/","title":{"rendered":"W3C HTML5 Validator enhanced with language detection functionality"},"content":{"rendered":"<p>The W3C\u00a0<a class=\"\" href=\"https:\/\/validator.w3.org\/nu\/\">HTML5 Validator<\/a>\u00a0has been enhanced with functionality that detects the overall language of a page.  The validator can currently detect a little over 50 languages, but more will be added over time.<\/p>\n<p>This makes it possible to compare the language of the content in a page with language declarations, and issue warnings if the <code>lang<\/code> attribute does not match the language of content, if no <code>lang<\/code> attribute is given at all, or if a language using a right-to-left script is detected but a <code>dir<\/code> attribute is missing from the <code>html<\/code> tag. <\/p>\n<p>For more information on the <code>lang<\/code> attribute, see the <a class=\"\" href=\"https:\/\/www.w3.org\/International\/questions\/qa-lang-why\">Why use the language attribute?<\/a> article, or <a href=\"https:\/\/www.w3.org\/International\/techniques\/authoring-html#textprocessing\">Declaring the overall language of a page<\/a> in the technique index.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The W3C\u00a0HTML5 Validator\u00a0has been enhanced with functionality that detects the overall language of a page. The validator can currently detect a little over 50 languages, but more will be added over time. This makes it possible to compare the language &hellip; <a href=\"https:\/\/www.w3.org\/blog\/International\/2016\/07\/13\/w3c-html5-validator-enhanced-with-language-detection-functionality\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":79,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[137,3,185,186,5,19],"tags":[52,198],"class_list":["post-2780","post","type-post","status-publish","format-standard","hentry","category-announcements","category-highlight","category-multilingweb","category-webi18n","category-w3cwebdesign","category-w3cwebuseragents","tag-i18n-checker","tag-validator"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/posts\/2780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/users\/79"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/comments?post=2780"}],"version-history":[{"count":2,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/posts\/2780\/revisions"}],"predecessor-version":[{"id":2782,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/posts\/2780\/revisions\/2782"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/media?parent=2780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/categories?post=2780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/tags?post=2780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}