Design comparison
Solution retrospective
I'd appreciate some feedback around which semantic elements to use in my HTML, I mainly used divs which I know isn't best practice. Especially for accessibility.
Community feedback
- @correlucasPosted over 2 years ago
Hello Rickey, congratulations for your solution!!
Answering your questions, in this challenge there's not much to do about semantic, you can consider adding
<main>
instead of the div to wrap card container and<picture>
instead od<img>
to display more than one image size depending of the device. You try to add somealt
to the image andaria-label
to indicate what is this element for a screen reader.In other challenges like landing pages you'll have the opportunity to work more the html semantic because you'll have more blocks to separate as sections, articles and etc.
You can read this documentation to have an overview about html semantics:
https://www.w3schools.com/html/html5_semantic_elements.asp
Keep it up!
Marked as helpful1@rhickey94Posted over 2 years ago@correlucas Thanks for taking the time! Much appreciated!
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