Design comparison
Community feedback
- @VCaramesPosted about 2 years ago
Congrats @saif-kh on completing this challenge!
Card looks good!
To clean up your code and make semantically correct, you want to the following to you code:
<body> <article> <img src="" alt="" /> <h1></h1> <p></p> </article> </body>
Since this is a card component, its better to wrap the entire content in an <article> element .
The <h1> is used for headings; there are six levels of headings. Heres a link with more info on it: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements
For simple text, its better to use a <p> (paragraph element). Heres a link with more info on it: [https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p] (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p)
Happy Coding!
Marked as helpful0
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