thickguru thickguru - 6 months ago 330
HTML Question

Language not declared Ideally

I've been running some tests on my website in regards to the Google webmaster guidelines.

To my surprise it states that I'm not declaring my language ideally. Upon checking my HTML, I have the following within it:

<html lang="en">
<head>


Am I stating the language incorrectly? As I thought this was correct...

Answer

I managed to find a fix to this problem, as I mentioned when I was trying to declare the language via HTML it just would not work.

So I used .htaccess to fix the problem by sending custom headers:

Header set Content-Language "en-GB"