Design comparison
Solution retrospective
People, how are you keeping,
I'm submitting this solution knowing that i screwed up on so many levels, i will put it like that, if one of you guys want to have a look at my code and have a better implementation please feel free Thank you so much
Community feedback
- @mattstuddertPosted almost 5 years ago
Hey Vincenzo, great to see you post another solution. Where do you feel like you're screwing up? After taking a look at your code I've got some suggestions on potential improvements:
- First of all, I'd recommend trying to clear the accessibility issues. Read through the errors and Google each one to see if you can try and resolve them.
- You've put the "A Simple Bookmark Manager" as a
h2
whereas I would say this is the main heading on the page and should be ah1
. You've then got multipleh1
elements elsewhere. I'd always recommend having a singleh1
element and then use multipleh2
-h6
elements to create the content hierarchy. - Your
click
listeners for the tabs are onli
elements. This makes this content inaccessible to screen reader users, asli
elements aren't focusable by default. Whenever you have interactive areas on a page, be sure to use an interactive element to trigger the functionality. Abutton
would have been perfect here. - You're currently using
<section class="footer">
as the footer, but you could just use<footer>
, which would be semantically correct. - The
ul
in the footer currently has the following structure:
<ul> <a href="#features"><li>Features</li></a> <a href="#Pricing"><li>Pricing</li></a> <a href="#Contacts"><li>Contact</li></a> </ul>
This is invalid HTML as only
li
elements can be direct children oful
andol
elements. So the anchor tags should be inside the list items.Keep at it. You'll keep improving with each project! 👍
1 - @VincenzoMarcovecchioPosted almost 5 years ago
Thanks you for your help Matt!
I appreciate really, these are some good information you are giving me. Mostly it's the Java Script part that is a bit overwhelming over here, but i will go back to this project many times more probably :) and i will try to fix it in the best way possible, i will!
I should avoid html mistakes now...
Thank you again!
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