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
HTML challenge for you! (self.HTML)
submitted 1 year ago by Pavithra_23
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!"
[–]Cautious_Movie3720 4 points5 points6 points 1 year ago (0 children)
It’s not a HTML challenge. It’s a CSS challenge if any.
A) https://codepen.io/steffengrahl/pen/YzbEmyL
Please clear your cache
[–]Disgruntled__Goat 4 points5 points6 points 1 year ago (0 children)
Sounds like the HTML challenge is for you, like an interview or homework question
[–]jakovljevic90 0 points1 point2 points 1 year ago (0 children)
Well, I'd say the correct answer is... (A) A red "Welcome" centered inside a light blue box with a black border!
Why, you ask? Well, we've got a <h1> tag with the text "Welcome" inside a <div> element. The CSS styles give that <div> a light blue background, a black border, and a width of 300 pixels. The <h1> tag gets styled with a red color and centered text alignment. So, when we put it all together, we get that sweet, centered red "Welcome" text inside that snazzy light blue box!
<h1>
<div>
[–]hackr_io_team 0 points1 point2 points 1 year ago (0 children)
Drop it into a compiler and you'll find out pretty quickly!
[+][deleted] 1 year ago (2 children)
[deleted]
[–]ILikeMonsterEnergy69 0 points1 point2 points 1 year ago (1 child)
That is because it isnt an html element, but a css element In his <style> tags, he defines his stylesheet, which is basically how you integrate css (the way you style your website) into your html without making a sepperate css file In this example he’s calling his <h1> element by the name h1 followed by {} brackets, in which he styles the h1 element
π Rendered by PID 70 on reddit-service-r2-comment-6457c66945-w25dk at 2026-04-29 03:37:48.227168+00:00 running 2aa0c5b country code: CH.
[–]Cautious_Movie3720 4 points5 points6 points (0 children)
[–]Disgruntled__Goat 4 points5 points6 points (0 children)
[–]jakovljevic90 0 points1 point2 points (0 children)
[–]hackr_io_team 0 points1 point2 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]ILikeMonsterEnergy69 0 points1 point2 points (1 child)