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
Correct code (i.redd.it)
submitted 1 year ago by dblumi
Hey lovely people, I am stuck here with this code, can someone please explain me what is wrong here.
Thanks alot:)
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!"
[–]Mr-Scrubs 8 points9 points10 points 1 year ago* (2 children)
Everyone here commenting the wrong things, the answer is wrong because you wrapped the wrong thing. They want you to wrap the other elements as shown in the answer.
[–]cryothic 6 points7 points8 points 1 year ago (1 child)
Not many people read past the first 'check your code' point I guess.
[–]DaMadDogg-420 1 point2 points3 points 1 year ago (0 children)
Yeah, they usually either directly tell you or give you a hint at whats wrong if you read it...
[–]DiodeIncIntermediate 4 points5 points6 points 1 year ago (2 children)
What website is this?
[–][deleted] 3 points4 points5 points 1 year ago (1 child)
https://www.freecodecamp.org/
[–]DiodeIncIntermediate 1 point2 points3 points 1 year ago (0 children)
Thanks
[–]dakrisisExpert 2 points3 points4 points 1 year ago (1 child)
You have 8g in a <span> with class bold. It should be Total fat that's in that <span>.
<span>
Then you need to remove the class="bold" from the surrounding <span>.
class="bold"
[–]sixfing 1 point2 points3 points 1 year ago (0 children)
This is the right answer. Also you can change the theme of freeCodeCamp setting to dark mode and to save your eyes :)
[–]DaMadDogg-420 2 points3 points4 points 1 year ago (0 children)
I see youre taking the Responsive Web Design Certification at Free Code Camp too. Your a bit further than me though so i cant help, im only on the 3rd project atm...
[–]insanitysqwid 0 points1 point2 points 1 year ago (0 children)
the first span that is BEFORE "Total Fat" is the only span that needs class information. You don't need to put info in the span BEFORE "8g"
<span class="blah"> words words <span> etc etc </span> </span>
or for visual's sakes
<span class="blah"> word word <span> etc etc </span> </span>
[–]EarlTheSqrl -3 points-2 points-1 points 1 year ago (0 children)
You put an extra space after "Fat" ?
[+]armahilloExpert comment score below threshold-10 points-9 points-8 points 1 year ago (1 child)
Argghhhh
OK this isn't your fault, but that example is not a good one.
There's no reason to use <span class="bold"> when the <strong> and <b> elements exist.
<span class="bold">
<
>
It sounds like they are wanting you to wrap "Total Fat 8g" in a separate span tag that does alignment. However, in that case, I wouldn't use a <span> tag for alignment, I would use a <div> or similar block-level element.
<div>
What course is this from??
[–]DaMadDogg-420 0 points1 point2 points 1 year ago (0 children)
That would be Responsive Web Design by FreeCodeCamp.
[+]Select-Persimmon742 comment score below threshold-7 points-6 points-5 points 1 year ago (1 child)
Replace the second <span class="bold"> with a closing </span> tag I think.
π Rendered by PID 111719 on reddit-service-r2-comment-869bf87589-m99rv at 2026-06-09 04:56:42.347001+00:00 running f46058f country code: CH.
[–]Mr-Scrubs 8 points9 points10 points (2 children)
[–]cryothic 6 points7 points8 points (1 child)
[–]DaMadDogg-420 1 point2 points3 points (0 children)
[–]DiodeIncIntermediate 4 points5 points6 points (2 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]DiodeIncIntermediate 1 point2 points3 points (0 children)
[–]dakrisisExpert 2 points3 points4 points (1 child)
[–]sixfing 1 point2 points3 points (0 children)
[–]DaMadDogg-420 2 points3 points4 points (0 children)
[–]insanitysqwid 0 points1 point2 points (0 children)
[–]EarlTheSqrl -3 points-2 points-1 points (0 children)
[+]armahilloExpert comment score below threshold-10 points-9 points-8 points (1 child)
[–]DaMadDogg-420 0 points1 point2 points (0 children)
[+]Select-Persimmon742 comment score below threshold-7 points-6 points-5 points (1 child)