Set the correct language code in the HTML element