Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 17 days ago

Simple recipe layout using HTML5 and custom CSS styling

Mohamed ashrf•210
@x-mohamed25
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?

I’m proud that I was able to complete the project layout fully and style it with clean CSS. I followed a consistent structure using Flexbox, and I managed to deploy the project successfully to Vercel. Next time, I would improve the accessibility of the page and add more responsiveness for smaller screens like mobile devices.

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

The main challenge I faced was organizing the CSS and adjusting the layout properly using flex-direction, margins, and padding. It took some trial and error to get the design to match the reference layout. Another challenge was the deployment process with Git and Vercel. After a few mistakes, I was able to fix file names and link paths to make the site work properly online.

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

i would appreciate feedback on:

The structure of my HTML (did I use semantic tags properly?)

My CSS organization and best practices (e.g. naming, layout)

How to improve responsiveness for tablets and phones

Any tips on improving overall design consistency and spacing

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Ayokanmi Adejola•1,110
    @Ayokanmi-Adejola
    Posted 17 days ago

    I've had a look at your Omelette Recipe page solution, and it's a really solid effort! You've done a great job implementing the design.

    Here's some feedback to help you refine it even further, covering both strengths and areas for potential enhancement:

    What I liked :

    • The overall design is clean and well-structured, and it looks very close to the original Frontend Mentor challenge design.
    • The responsiveness is excellent; the layout adapts smoothly and beautifully across different screen sizes, from desktop to mobile.
    • You've done a good job with the basic HTML structure, making it easy to read.

    Areas for Improvement :

    1. HTML Semantics & Structure:

      • For your lists (e.g., ingredients, instructions, nutrition), ensuring you use the correct HTML tags like <ul> for unordered lists (ingredients, preparation) and <ol> for ordered lists (instructions) with <li> for list items will improve both meaning and accessibility.
      • Consider using <section> or <article> tags for logical content groupings like the "Preparation time," "Ingredients," "Instructions," and "Nutrition" sections. This provides better semantic meaning to your document.
      • Using <h2> or <h3> for subheadings within the recipe (like "Ingredients" or "Instructions") after your main <h1> for "Simple Omelette Recipe" will create a clear content hierarchy, which is good for SEO and screen readers.
    2. CSS Best Practices:

      • You could explore using CSS variables for colors, font families, and common spacing values. This makes your stylesheet easier to manage and update across the project.
      • Reviewing your CSS for any highly specific or deeply nested selectors. Sometimes, simpler selectors can achieve the same result and make your CSS more maintainable.
    3. Accessibility Considerations:

      • For images, ensure you have meaningful alt attributes (e.g., alt="Delicious omelette on a plate" instead of just alt="omelette"). This helps users with screen readers understand the image content.
      • Confirm that your text color contrast meets WCAG guidelines, especially for smaller text or text on background colors, to ensure readability for everyone.

    In Summary:
    
    This is a really strong foundation for the Omelette Recipe page, You've nailed the visual design and responsiveness. Focusing on enhancing the HTML semantics and applying a few CSS best practices will make your solution even more robust and accessible.
    
    Keep up the great work!
    

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 all CSS, SCSS and Less files in your repository.

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.

How does the JavaScript validation report work?

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

The report picks out common JavaScript issues such as not using semicolons and using var instead of let or const, among others.

The report will audit all JS and JSX files in your repository. We currently do not support Typescript or other frontend frameworks.

Oops! 😬

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

Log in with GitHub