Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

correct language decleration

Jan 25, 2012 12:44AM PST

hi,

first post and not sure you'll agree it's in the right place, but here goes


been writing my website and trying to keep everything compliant as possible

i have tried all the versions i can find of declaring language

but if i check it with woorank

it still deosn't see it, or only partially and thinks it is not declared right


what i have right now is

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-language" content="en-gb" />

all passes w3c validation, but woorank doesn't see the language decleration

(yes i have read you should only have one, have also tried both seperately with same result)

any ideas why?


Tony

Discussion is locked

- Collapse -
Answer
Language declaration
Jan 25, 2012 12:22PM PST

Try "en-US" instead of just "en".

~Sovereign

- Collapse -
thanks sovereign
Jan 25, 2012 4:33PM PST

Thanks for that (although i want en-gb) but in which part should i change it?
i already have en-gb in the main language decleration
i thought that en was enough within the xml and lang decleration as they are for the html or xml 'programing'?
also i believe at some stages you need it to be in capitals?
have also read that 'Content' needs to be with the capital 'C' ?

- Collapse -
Something like:
Jan 26, 2012 3:47AM PST