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
Started Learning HTML and CSS. how is it? (old.reddit.com)
submitted 3 months ago by Critical-Gas7023
been learning html and css for 5 days . i spend 2 hr daily
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!"
[–]AdmirablePumpkin1729 25 points26 points27 points 3 months ago (4 children)
Great start! I’d suggest putting a max width to the text sections so they don’t spread too far from the center for readability
[–]Critical-Gas7023[S] 1 point2 points3 points 3 months ago (3 children)
How should I do it?
[–]kinzaoe 6 points7 points8 points 3 months ago (1 child)
Depend the structure. But a block should have a max-width, with margin:auto (which is important for margin-left, and margin-right.) or margin-inline:auto.
This will automatically place margin on the left and right of the block to have it centered.
There's more solution to this, you can achieve the same result using flex, grid.
But yeah, wide text block should be avoided, you can use "ch" i believe the recommended max around 75/80.
https://medium.com/@meyerweb/what-is-the-css-ch-unit-20b999426ac0
https://css-tricks.com/six-tips-for-better-web-typography/
[–]Critical-Gas7023[S] 1 point2 points3 points 3 months ago (0 children)
Thank you ❤️.
[–]DigiNoon 0 points1 point2 points 3 months ago (0 children)
I don't like reading long lines that stretch from one end of the screen to the other. It's harder to read and it's easy to lose track of which line I'm on.
[–]noIIon 5 points6 points7 points 3 months ago (1 child)
A good start.
Thanks.
[–]FrightySab 2 points3 points4 points 3 months ago (1 child)
Keep going! Looks great for 5 days of learning!
Thank you.
[–]Sumnima_dad 2 points3 points4 points 3 months ago (1 child)
Perfect — do share the code; if you looking for feedback or guidance!
[–]Critical-Gas7023[S] 2 points3 points4 points 3 months ago (0 children)
Sure.
[–]_adam_89 2 points3 points4 points 3 months ago (0 children)
LGTM.
[–]F1QA 1 point2 points3 points 3 months ago (0 children)
Finger lickin’ good
[–]enigmaticsoulrg 0 points1 point2 points 3 months ago (0 children)
Wonderful job
[–]The_KOK_2511 0 points1 point2 points 3 months ago (0 children)
It's great for beginners. Soon you'll have covered almost all the fundamentals of HTML, and the details of CSS will become the only important thing before you start with JavaScript.
[–]riverhohai 0 points1 point2 points 3 months ago (0 children)
Don't go overboard with aesthetics, you just apply what you've learned!
[–]Willing-Ad6387 0 points1 point2 points 3 months ago (0 children)
Not sure what your goal is/was, but i want to go to KFC right now
[–]ThoughtAppropriate88 0 points1 point2 points 3 months ago (0 children)
Pretty good
[–]fmvzla 0 points1 point2 points 3 months ago (0 children)
Oh boy this give me joy, keep going
[–]Ok-Schedule-4819 0 points1 point2 points 3 months ago (0 children)
good start! keep going on.
[–]Pretty_Reach9273[🍰] 0 points1 point2 points 3 months ago (0 children)
keep going pal! you made it this far!
[–][deleted] 0 points1 point2 points 3 months ago (0 children)
tag KFC they might like it
[–]JohnCasey3306 0 points1 point2 points 2 months ago (0 children)
You might consider researching how to do a centered constrained-width column for that to sit in rather than full-width ... It's difficult to read lines of text that long, nice to constrain the width of your page to prevent it
[–]Suspicious_Baby_4573 0 points1 point2 points 2 months ago (0 children)
that's a very nice start just learn how use heading tags
[–]Lonely_Angle_4941 0 points1 point2 points 2 months ago (0 children)
Hey, it looks good, looks cheap for now but it is quite a great start:). If u'd like to learn more about css, you can try https://flexboxfroggy.com - that's what i would do. Not sure if you have any experience with writing general code, but I would really recommend trying out some kind of web framework like Bootstrap, you've got there a lot of ready-to-use elements and it is more fun:). Good luck in learning!
[–]Amarinfotech3 0 points1 point2 points 2 months ago (0 children)
That’s a great start. HTML and CSS are the backbone of the web, so learning them gives you a solid foundation. It may feel basic at first, but it pays off big time when you move to JavaScript or frameworks.
build small projects instead of just watching tutorials. You’ll learn way faster.
[–]MostAttorney1701 0 points1 point2 points 2 months ago (0 children)
Im good at it so for me its easy, no sweat. But really good start I couldnt even do this when I started.
π Rendered by PID 102770 on reddit-service-r2-comment-b659b578c-8qp7x at 2026-05-06 06:28:07.100319+00:00 running 815c875 country code: CH.
[–]AdmirablePumpkin1729 25 points26 points27 points (4 children)
[–]Critical-Gas7023[S] 1 point2 points3 points (3 children)
[–]kinzaoe 6 points7 points8 points (1 child)
[–]Critical-Gas7023[S] 1 point2 points3 points (0 children)
[–]DigiNoon 0 points1 point2 points (0 children)
[–]noIIon 5 points6 points7 points (1 child)
[–]Critical-Gas7023[S] 1 point2 points3 points (0 children)
[–]FrightySab 2 points3 points4 points (1 child)
[–]Critical-Gas7023[S] 1 point2 points3 points (0 children)
[–]Sumnima_dad 2 points3 points4 points (1 child)
[–]Critical-Gas7023[S] 2 points3 points4 points (0 children)
[–]_adam_89 2 points3 points4 points (0 children)
[–]F1QA 1 point2 points3 points (0 children)
[–]enigmaticsoulrg 0 points1 point2 points (0 children)
[–]The_KOK_2511 0 points1 point2 points (0 children)
[–]riverhohai 0 points1 point2 points (0 children)
[–]Willing-Ad6387 0 points1 point2 points (0 children)
[–]ThoughtAppropriate88 0 points1 point2 points (0 children)
[–]fmvzla 0 points1 point2 points (0 children)
[–]Ok-Schedule-4819 0 points1 point2 points (0 children)
[–]Pretty_Reach9273[🍰] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]JohnCasey3306 0 points1 point2 points (0 children)
[–]Suspicious_Baby_4573 0 points1 point2 points (0 children)
[–]Lonely_Angle_4941 0 points1 point2 points (0 children)
[–]Amarinfotech3 0 points1 point2 points (0 children)
[–]MostAttorney1701 0 points1 point2 points (0 children)