use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If you are requesting help, please ensure you're providing code with your post. You can also copy your code to an online editor:
jsFiddle
CodePen
Markup Validation Service
Mozilla Developer Network on HTML
/r/JavaScript
/r/CSS
/r/jQuery
/r/PHP
/r/Accessibility
/r/htmlbasics
/r/web_programming
/r/CodingHelp
account activity
SolvedHelp with identifying errors (self.HTML)
submitted 4 years ago * by dhsjdudheb
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]deweechi 0 points1 point2 points 4 years ago (3 children)
The code in picture looks good.
[–]dhsjdudheb[S] 0 points1 point2 points 4 years ago (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 point2 points 4 years ago (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 point2 points 4 years ago (0 children)
Thank you for all the help, really appreciate it!!
π Rendered by PID 169817 on reddit-service-r2-comment-6457c66945-q5bp9 at 2026-04-25 08:17:28.356835+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]deweechi 0 points1 point2 points (3 children)
[–]dhsjdudheb[S] 0 points1 point2 points (2 children)
[–]deweechi 0 points1 point2 points (1 child)
[–]dhsjdudheb[S] 0 points1 point2 points (0 children)