Intro section with dropdown navigation hub using pure HTML/CSS/JS
Design comparison
Solution retrospective
I would like to seek feedback regarding my solution for mobile responsiveness. My solution is definitely not the best, and I am not sure of what the best practices for it are.
Community feedback
- @PraiseImmanuelPosted over 2 years ago
Hello Junwei! I really love your solution, it's nice and well constructed. I will just suggest some ways to get rid of the HTML(20) and Accessibility issues(11). The issue with img tags is that you must always add an alt text even if it for an icon. So instead of omitting it when it doesn't seem to be necessary like in the case of an icon, you just have to add it with an empty string. for example <img class="logo" src="./images/logo.svg"/ alt=""> or <img class="logo" src="./images/logo.svg"/ alt="logo">.
Next is about the landmark issues, since you are working with HTML5, you are expected to use header, footer, nav, article, or section when necessary. So keep coding and keep flying!
Marked as helpful1
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