validator.w3.org lang en error

Open to all! Ask other shopowners for help.
Post Reply
14Steve14
Senior Contributor
Posts: 922
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 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:


Join The Code Co-op to get access to your library in the Code Co-op Forum
Fiber
Contributor
Posts: 173
Joined: Mon Oct 26, 2020 12:16 pm
Phoenix Version: v1.1.0.6
Has thanked: 17 times
Been thanked: 27 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
Senior Contributor
Posts: 922
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply