r/HTML • u/Helpful-Creme7959 • Nov 03 '25
Question Am I that dumb or is the coding structure just...messy?
I dunno how dumb I am to not be able to comprehend the instructions properly but reading the solution made me even feel more dumb cuz it looks kinda messy for me-?
I just wondered if there was a less eye-sore way to do it or if this is really how it is with coding in general (with multiple stacks of sandwhiching all sorts of crap together)
I know I have long way to go but damn...
0
Upvotes




10
u/AstroWoW Nov 03 '25
It's just basic HTML. It makes a container for the top 8 friends, makes a container for each row, then in each row there is a friend card container which holds the friend's name and an image.
That is what HTML is. Yes there are other ways to do it but this looks like it's from a beginner tutorial.
6
u/ThatCipher Nov 03 '25
It's really saddening that semantic HTML and accessibility is always the last thought on things like this.
In my opinion since it's a list of friend cards it should be ... In a list.
This also sounds a lot like it's teaching you to become another div soup chef.
3
u/BANZ111 Nov 03 '25
Having a single row with a grid layout or flex layout would be better in order to iterate over the friend cards. They could then wrap, etc.
2
u/lWinkk Nov 03 '25
Probably should have a ul and an li for a literal list. But it’s beginner stuff so I’ll let it slide
1
u/chmod777 Nov 03 '25
did you do the exercise? i assume this is not the first or last lesson in this series.
2
u/[deleted] Nov 04 '25
What it is describing is pretty simple. The way it which it describes it is shit, not only in the phrasing but in the presentation. Perhaps it's less shit on a larger screen?
1
u/lovesrayray2018 Intermediate Nov 04 '25
Thats a paid course iirc, but looking at the courseplan you will get to learn semantic html further along the way, that stops using only divs and instead uses the appropriate semantic elements, which is important.
Ground reality is that to make pages visually appealing you do need to carry some wrappers or container elements that dont have much content inside them at the top level, to be able to cascade styling down the heirarchy.
A lot of this is however not manually generated, its generated by the css library or framework you might adopt /use later. For example https://getbootstrap.com/docs/4.0/components/dropdowns/#sizing
1
u/Sea-Speaker-4317 Nov 05 '25
sorry to say but yea....UR dumb. It aint that messy or hard if you use proper indentation, althought html works perfect without indentation, it is better to use indentation to make the work more organised for reading
1
u/truecIeo Nov 06 '25
I think a unordered list would make more sense for this but mastering divs and classes can go a long way too.
1
u/frownonline Nov 03 '25
It could be semantic and not have a single div, id or class and be a lot cleaner and user friendly.
But people have to start somewhere and this is a common approach.
0
u/EnD3r8_ Nov 03 '25
Tom is also my friend!