Page 1 of 1

validator.w3.org lang en error

Posted: Sun Apr 25, 2021 10:27 am
by 14Steve14
Nothing important, and nothing serious but I have just checked my site on the W3C validator Of the three warning/errors that it listed for the home page the first was
This document appears to be written in English. Consider adding lang="en" (or variant) to the html start tag.
Is there any need to correct this and if so how should it be done properly.

Re: validator.w3.org lang en error

Posted: Sun Apr 25, 2021 11:40 am
by Fiber
Is there any need to correct this and if so how should it be done properly.
I don't know if it's really necessary, but I do hate errors :-)

In english.php see here
I have in my dutch.php this

Code: Select all

const HTML_PARAMS = 'dir="ltr" lang="nl"';

Re: validator.w3.org lang en error

Posted: Sun Apr 25, 2021 6:15 pm
by 14Steve14
Many thanks. That seems to have worked. One more warning gone. I have also got rid of a few of the errors that there also there so its looking good.