{"id":17667,"date":"2019-07-18T16:23:18","date_gmt":"2019-07-18T20:23:18","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=17667"},"modified":"2020-03-12T14:39:19","modified_gmt":"2020-03-12T18:39:19","slug":"declare-the-language-code-for-the-page","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/boldgrid-speed-coach-product-guide\/declare-the-language-code-for-the-page\/","title":{"rendered":"Declare the Language Code for the Page"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><h2 id=\"what-is-a-language-code\"><span style=\"font-weight: 400;\">What is a Language Code?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The language code tells visitors the natural human language of the web page content. Many tools and applications use the language code to apply correct fonts and styling, use a different voice with text-to-speech applications, determine the spell checking dictionary to use, and other tasks that depend on what the language of the page is.<\/span><\/p>\n<h2 id=\"how-to-declare-language\"><span style=\"font-weight: 400;\">How to Declare Language?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">To declare a language, HTML uses the &ldquo;lang&rdquo; attribute. The &ldquo;lang&rdquo; attribute can be added to any HTML tag, but in most cases it should be added to the top-level &lt;html&gt; tag if all of the content on the web page is in the same language. Here is an example of how the &lt;html&gt; element will look with the &ldquo;lang&rdquo; attribute set to English: &lt;html lang=&rdquo;en&rdquo;&gt;.<\/span><\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>What is a Language Code? The language code tells visitors the natural human language of the web page content. Many tools and applications use the language code to apply correct fonts and styling, use a different voice with text-to-speech applications, determine the spell checking dictionary to use, and other tasks that depend on what the [&hellip;]<\/p>\n","protected":false},"author":1071,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[651],"tags":[666],"class_list":["post-17667","post","type-post","status-publish","format-standard","hentry","category-boldgrid-speed-coach-product-guide","tag-best-practices","feature-type-free"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/1071"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=17667"}],"version-history":[{"count":1,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17667\/revisions"}],"predecessor-version":[{"id":17668,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17667\/revisions\/17668"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=17667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=17667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=17667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}