Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Frontend Mentor || Recipe Main Page

@mrockcodes

Desktop design screenshot for the Recipe page coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Question for other students and masters: how do you make your codes efficient and readable?

Community feedback

@0xabdulkhaliq

Posted

Hello there 👋. Congratulations on successfully completing the challenge! 🎉

  • I have some suggestions regarding your code that I believe will be of great interest to you.

HTML 🏷️:

  • You have used span element to make the text bold, It's not accessible to screen readers though. The accessibility devices will read aloud those contents inside span as just plain text.
  • So, instead of relying on span with custom styling, you can use a semantic element named strong. It will help you to make your text bold without adding custom css and apart from that the important thing is using strong will help screen readers like devices to properly announce those content with extra priorities!.
  • Additionally for styling part, The width: 100% property for body is not necessary. because it's a block level element which will take the full width of the page by default.
  • So feel free to remove width: 100% style rule from body this will help you to write efficient code and makes your code more reusable.

.

I hope you find this helpful 😄 Above all, the solution you submitted is great !

Happy coding!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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