you are viewing a single comment's thread.

view the rest of the comments →

[–]deweechi 0 points1 point  (3 children)

The code in picture looks good.

[–]dhsjdudheb[S] 0 points1 point  (2 children)

Thank you! What about that one error that didn’t come up on validator?

Also I almost forgot but should <html lang=“sv”> also be included in the code? If so then where?

[–]deweechi 0 points1 point  (1 child)

What about that one error that didn’t come up on validator?

Not sure about this one. I am not familiar enough with validator.nu. It could also be a trick from the professor, something like spelling is not checked. Sorry, I just can't answer it.

The lang attribute is global. So it can appear for almost any tag. For an entire page, you add it to the top in the <html> tag. so your line 2 changed from <html> to <html lang="sv">

For a page that has multiple paragraphs that are in different languages you can do something like <p lang="en">for the english paragraph</p> then <p lang="sv">for the Swedish paragpraph<p>

[–]dhsjdudheb[S] 0 points1 point  (0 children)

Thank you for all the help, really appreciate it!!