validator.w3.org lang en error

Ask the community for help and support.
Post Reply
14Steve14
VIP Member
VIP Member
Posts: 549
Joined: Fri Oct 25, 2019 7:01 pm
Has thanked: 8 times
Been thanked: 49 times

validator.w3.org lang en error

Post 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.

Tags:
Fiber
VIP Member
VIP Member
Posts: 121
Joined: Mon Oct 26, 2020 12:16 pm
Has thanked: 12 times
Been thanked: 19 times

Re: validator.w3.org lang en error

Post 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"';
Turn up the Max
14Steve14
VIP Member
VIP Member
Posts: 549
Joined: Fri Oct 25, 2019 7:01 pm
Has thanked: 8 times
Been thanked: 49 times

Re: validator.w3.org lang en error

Post 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.
Post Reply