Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 5 months ago

Omelette recipe page

PastaSus•360
@PastaSus
A solution to the Recipe page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

this code was fixed/refactored

What challenges did you encounter, and how did you overcome them?

bad code, study and get help

What specific areas of your project would you like help with?

any room for improvements on this?

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Gwenaël Magnenat•1,540
    @gmagnenat
    Posted 5 months ago

    Hi, congratulations on your effort with this challenge! You've done great work, but there are some areas where improvements can enhance the accessibility, maintainability, and overall quality of your code. Here's a review with some recommendations:

    Semantic HTML and Accessibility

    • Load your stylesheet after Google Fonts. Make sure your stylesheet is loaded after Google Fonts in the <head> of your document. This avoids styles being applied without the correct fonts, which can cause layout shifts.
    • Avoid using words like "image," "photo," or "picture" in your alt attributes. Screen readers already announce that the element is an image. Focus on describing the content of the image succinctly and meaningfully.
    • Use <strong> instead of <span> in lists when emphasizing important text. <strong> has semantic meaning, indicating importance, and acts as a label for the list items, improving accessibility.

    CSS and Layout Improvements

    • Use a single image for the omelette picture and adjust its styling within a media query. This approach reduces unnecessary HTTP requests and improves page load performance.
    • Remove unnecessary comments in your stylesheet. Cleaning up your stylesheet makes it easier to navigate and helps during code reviews.
    • Use padding in sections to create spacing instead of applying margin-top on titles. This makes the design more adaptable across layouts and projects. Check out this article for more insight: Padding vs. Margin.
    • Follow a mobile-first approach by designing for mobile as the default layout and then using media queries with min-width for larger screens. This ensures better performance across different devices.
    • Use rem units in media queries instead of pixels. This respects users who adjust their browser's default font size, ensuring your design remains accessible and scalable.

    Update your README. A well-structured README helps others understand your project better. Use the provided template, remove unnecessary sections, and add details about the challenges you faced and the solutions you implemented. This will make your GitHub profile stronger and more professional.

    These changes will not only improve the accessibility and maintainability of your code but also help you develop solid practices for future projects.

    Let me know if you have any questions or need help implementing any of these suggestions.

    Happy coding!

    Marked as helpful

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
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit 1st-party linked stylesheets, and styles within <style> tags.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

Frontend Mentor for Teams

Frontend Mentor for Teams helps companies and schools onboard and train developers through project-based learning. Our industry-standard projects give developers hands-on experience tackling real coding problems, helping them master their craft.

If you work in a company or are a student in a coding school, feel free to share Frontend Mentor for Teams with your manager or instructor, as they may use it to help with your coding education.

Learn more

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub