Is there a way to fix the "HTML lang en ----- Not matching self-hreflang" error in Webflow?

Published on
September 22, 2023

To fix the "HTML lang en ----- Not matching self-hreflang" error in Webflow, you need to ensure that the HTML lang attribute and the self-referencing hreflang attribute match.

Here is a step-by-step guide to fix this error:

  1. Visit the affected page in your Webflow project.
  2. Click on the Page Settings icon in the top left corner of the Designer.
  3. In the Page Settings panel, scroll down to the SEO section.
  4. Locate the Language field and make sure it is set to "English" or "en" for the English language.
  5. Save the changes and publish your website.
  6. After publishing, open a web browser and visit your website.
  7. Right-click on the page and select "Inspect" to open the browser's Developer Tools.
  8. In the Developer Tools panel, select the "Console" tab.
  9. Look for any errors related to self-referencing hreflang. It may show a warning similar to "HTML lang en ----- Not matching self-hreflang."
  10. Identify the affected page URLs listed in the error message.
  11. Go back to your Webflow project and find the affected page in the Pages panel.
  12. Open the Page Settings for that specific page.
  13. Scroll down to the SEO section and locate the Hreflang field.
  14. Ensure that the Hreflang field matches the language you set in the previous step. For English, it should be "en".
  15. Save the changes and publish your website again.
  16. Once published, refresh the page where you initially detected the error in the Developer Tools.
  17. The "HTML lang en ----- Not matching self-hreflang" error should now be resolved.

By following these steps, you should be able to fix the "HTML lang en ----- Not matching self-hreflang" error in Webflow and ensure that the language attributes match for proper SEO optimization.

Additional Questions:

  1. How do I access page settings in Webflow?
  2. What is the purpose of the HTML lang attribute in Webflow?
  3. How can I optimize my website for SEO in Webflow?