Design comparison
Solution retrospective
Hi, is it ok when I wrapped content using <section> without class or is it better to use classes even in small projects like this? Thanks
Community feedback
- @Bayoumi-devPosted over 2 years ago
Hey! It is ok using
<section>
without a class in small projects but when using more than one section you need to use classes.All page content should be contained by landmarks
, Contain the attribution with<footer>
.
<footer> <div class="attribution"> //... </div> </footer>
Hope this is useful to you... Keep coding👍
Marked as helpful0 - @tesla-ambassadorPosted over 2 years ago
Hey Lubo. Congrats on completing this challenge, it's pretty solid! I think it's okay to style using tags in relatively small projects because sometimes it's cumbersome to come up with classnames . But you might not want to do that in bigger projects😅 You might also want to wrap your
div
with the class "attribution" in themain
landmark to resolve your accessibility issues! Happy coding and keep on coding!1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord