I used to think that if I want to target US audience I should use:
<html lang=en_us>
However, recently I got this message from https://validator.w3.org
Error: Bad value en_US for attribute lang on element html: The language subtag en_us is not a valid language subtag.
So is the en_US
totally wrong? I should change all my html tags to en
from en_US
now?
Any detailed information on this?
So is the
en_US
totally wrong?
It's not a valid value for that attribute. It should be en-US
- valid values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With