Design comparison
Solution retrospective
Any feedback appricated...
Community feedback
- @moaz-shamimPosted 26 days ago
Your HTML and CSS for the recipe page are well-structured and provide a good foundation. Below are suggestions to enhance the semantic quality, SEO optimization, and overall design of your project.
Use more semantic HTML5 elements for better accessibility and SEO. For example, consider using <article> for the recipe card, <header> for the title and introductory information, <footer> for attribution, and <section> for distinct parts like ingredients and instructions.
Your media query applies at 500px,
Use max-width: 100%; for images to ensure they scale appropriately on smaller screens.
Increase line height for better readability:
Prefer using relative units (rem, em) for margins and paddings instead of fixed units (px) for better scalability across different screen sizes.
By implementing these suggestions, you can create a more semantic, accessible, and SEO-optimized recipe page. Ensuring that your HTML is clean and your CSS is flexible will lead to a better user experience and improved search visibility.
Using a CSS reset is a great way to ensure consistency across different browsers by normalizing default styling
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