I am relatively new to coding, 12 days into the # 100DaysOfCode challenge and working through fCC’s Responsive Web Design course. I’m a student with background in art, graphic design and philosophy.
I have finished the first project, Tribute Page, and I’m looking for feedback (criticism) – especially when it comes to my code! I’ve used HTML/CSS validators before posting to save you all time on the more obvious problems, but as I’m a newbie, I don’t quite know the best practices and the mistakes I may be making.
Some notes:
I don’t know why the validator gave me “Parsing Errors” so I was not able to fix those,
some choices are simply due to the task’s requirements (e.g. using IDs – some are unnecessary for my structure/styling).
Thanks so much in advance if anyone’s willing to look over it!
Great look, and I love the subject matter. I like the card-style sections. That said, I can’t really give the good without some suggestions for “better”.
The content is exactly the same, but it becomes more relevant. The figure is the combination of an image, and its caption. The same can be done with your divs all over the place. You could easily do something more like:
Thank you so much for taking the time to go through my messy code and writing up your suggestions for improving it! If I understood your suggestion correctly, I should use specialized elements instead of general ones whenever possible, right? I am not familiar enough with the use of these elements yet (article, section, figure, …) so it’s definitely something I will be looking into now & trying to implement in future!
That’s exactly what I’m saying. HTML5 provides us with a lot of tags that are far more meaningful than a generic div tag. If you take a look on the MDN (Mozilla’s developer docs, and something I refer to dozens of times a day), there’s a great article on semantic tags.
They become far more meaningful when you’re viewing the text of the page. I can see at a glance what each piece is intended to do – articles contain sections, figures contain images and captions, headers and footers and asides oh my! rofl
Best of luck, Ynne, and feel free to message if there are further questions.