0

how can I specify the language of my website in HTML? I read that you can either use a meta tag or specify inside the <html> tag, which one is better? If there is any other way, please specify it.

1

1 Answer 1

2

You would use the lang= attribute on the <html> element.

Sign up to request clarification or add additional context in comments.

4 Comments

So let me get this straight, the lang= in the <html> is to say what language the page is written in, the <meta> is for saying what the language is going to be output as?
Nevermind that, seems that the meta is obsolete, so I'll use <hrml lang="en"> for now, until something goes wrong. Thanks
Instead of using the tag, is it possible to add a line of code into the .htaccess file for that?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.