Design comparison
Solution retrospective
the html is more orderly and the elements seem to be used correctly
What challenges did you encounter, and how did you overcome them?the page container became a problem beacuse of the page overflow.
What specific areas of your project would you like help with?containing the page and making a responsive layout for all devices.
Community feedback
- @mbtenkorangPosted 9 months ago
Hello πββοΈ @jjdavenport,
Congratulations on completing the challenge. πππ₯³π
A few tips for improvement in relation to semantic HTML;
- Use
<section>
tags for the various parts i.e.: Nutrition, Ingredients, Instructions,Preparation time instead of<div>
tags. - Use the same heading tags except an <h1> for the headings of the sections instead of giving a lower section heading for each.
- Use a
<p>
tag for the text that introduces the<table>
rather than a<legend>
tag - Change
<div class="attribution">
to<footer class="attribution">
to pass the HTML validation test
I am sure implementing these changes will improve your solution.
All the best and happy coding ππ§βπ»π
Marked as helpful3 - Use
- @rahulkumar215Posted 9 months ago
Helloπ
Congratulations on successfully completing the challenge! π
I have a suggestion regarding your code that I believe will be of great interest to you.
- as @mbtenkorang mentioned, You should use
<p>
paragraph HTML tag instead of<legend>
, I would like to add that you have added the<legend>
inside the table,
Here
<table> <legend> The table below shows nutritional values per serving without the additional fillings. </legend> <tr> <td>Calories</td> <td>277kcal</td> </tr> <tr> <td>Carbs</td> <td>0g</td> </tr> <tr> <td>Protein</td> <td>20g</td> </tr> <tr> <td>Fat</td> <td>22g</td> </tr> </table>
However, there is no need to do so, you can do this instead
<p> The table below shows nutritional values per serving without the additional fillings. </p> <table> <tr> <td>Calories</td> <td>277kcal</td> </tr> <tr> <td>Carbs</td> <td>0g</td> </tr> <tr> <td>Protein</td> <td>20g</td> </tr> <tr> <td>Fat</td> <td>22g</td> </tr> </table>
I hope you find this helpful π Above all, the solution you submitted is great !
If you need any feedback or suggestions, I am happy to help
Have Fun Coding!
Marked as helpful1 - as @mbtenkorang mentioned, You should use
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