Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

HTML troubbleshooting: Changing written language in HTML from ENG to SWE

Hi! I'm looking to change the written language in my webpage from english to swedish. The sentance "Vi bor på 5e våningen på" is shown as "Vi bor pÃ¥ 5e vÃ¥ningen pÃ¥" in my browser. I read something about adding a " lang="sv" " class in my <html> element, but it doenst work. Could anyone help me with this?

TLDR my native letters å ä ö is displayed wrong in my browser.

1 Answer

Hi!

You are definitely on the correct path. Declare your language in the <html> tag. Swedish is declared with "sv". If you do this, your code should work.

<!DOCTYPE html>
<html lang="sv">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <p>Vi bor på 5e våningen på</p>
  </body>
</html>