Design comparison
Solution retrospective
Any Tips to improve My code ?
Community feedback
- @IzykGitPosted 3 months ago
Good work!
The best way you could improve your code right now is by looking into semantic HTML! Instead of wrapping your code in just divs try to use sematic elements such as <main>, <section>, and <ul>.
The reason you want to use semantic HTML is because divs have no semantic value! So when a browser looks at a div it has no context on what content is included inside. This can hurt accessibility and SEO. Also using a lot of divs can make it difficult for other developers to pick up where you left off on a project.
So in your code you could make the card with a <main> element and then wrap your links in a <ul> with <li> elements inside. Here is an example.
<ul> <li><a>Link</a></li> </ul>
This will greatly improve your code.
Keep up the good work!
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