Design comparison
Solution retrospective
Please tell me how can I improve this code and if I used the good way to do it.
Thks.
JJ
Community feedback
- @SinisaVukmirovicPosted almost 2 years ago
Hello!
Looks good. Your code is fine. Improve it by using <section> instead some of those <div>s. For further improvement check out mobile first approach for future projects.
Good luck!
Marked as helpful0@JeremyPaymalPosted almost 2 years ago@SinisaVukmirovic
Hello !
So when I use only HTML and CSS, it is better to use section instead of too many divs. Thanks for the advice !
JJ
0@SinisaVukmirovicPosted almost 2 years ago@JeremyPaymal Its not about HTML and CSS.
Its not only better, it mandatory, You are using semantic elements for different reasons, for accessibility, for screen readers and people with disability that have to use them. Also, Google search engine doesn't like non semantic websites.
Find out more about semantic elements
Good luck in the future projects!
0
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