Ad-hoc HTML lang attribute

Ravindra Chaugule asked on August 13, 2018 11:58

I am creating one Ad-hoc page with no page nesting. I open it in fancyobx popup. When I validate it for Accessibility it throws "Document language not identified." error.

Below is the "Fix Suggestion"Repair: For HTML documents add the lang attribute and a valid ISO-639-1 two letter language code to the opening HTML element. For XHTML documents add both the lang and xmllang attributes with a valid ISO-639-1 two letter language code to the opening HTML element.

Can we add lang attribute and its value to Ad-hoc generated HTML tag?

Note:

  1. I don't want to set master template to this page as there are some elements on master page which I don't want to show on this page.
  2. I can simply set root master to this page and hide unwanted elements by targeting fancybox classes but just looking for what we can do with Kentico.

Recent Answers


Arun Kumar answered on August 13, 2018 12:15

Hi,

If you can use the root master page then you can use code mentioned in this post for your page to add lang attribute at run time. If not then you can modify or create a new page template without any master page nesting and include lang attribute there.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.