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

Responsive Recipe Page with HTML and CSS

Tanyaradzwa(Tanya)•80
@Tanya-abi
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 am just proud I completed it and managed to learn some new tricks in the process.

What challenges did you encounter, and how did you overcome them?
  1. I struggled with the right measurements since I do not have a figma file.
  2. I struggled with adding a responsive padding between the picture and top border. I wanted the padding to increase in width when I expand the page but it seems to remain the same.
  3. In the preparation and Ingridients section, the bullet points are supposed to align-middle to the text, I didn't know how to do that.
What specific areas of your project would you like help with?

I would like help with the areas I struggled with.

Code
Couldn’t fetch repository

Please log in to post a comment

Log in with GitHub

Community feedback

  • Grace•32,130
    @grace-snow
    Posted 7 months ago

    This challenge is mainly an opportunity to get the html right so I'll focus feedback there.

    • the omelette image is really important content so needs a proper alt description that communicates the same value as the image. Craig Abbot did a great post about how and when to write alt text if you want to look that up.
    • this is really hard to read at the moment because the code indentation isn't neat and consistent. Your code editor can even do this formatting automatically for you with prettier.
    • the top content of the recipe is not a header element. There is no benefit to including that as all it's doing is making styling more complex.
    • ideally headings should go in order. This should be one h1 followed by h2s (no h3).
    • strong is the tag for bold emphasis, not span.
    • it's essential in the table to use header cells (th) for header cell content. These cells should also have the scope attribute set to "row" to make it clear they are row headers not column headers (which is the default). This whole point is extremely important for accessibility. Without using header cells correctly, the table would break accessibility requirements.
    • the attribution should be in a footer landmark.
    • get into the habit of including a full modern css reset at the start of the styles in every project you do. Look up Andy Bell's modern css reset.
    • it is highly unusual to capitalise class names. Really don't do it. It's so well established now that class names are always lowercase.
    • I wouldn't expect to ever see a max- height on an element that contains text. That's likely to cause breakage for some users at some point, like if an author changes the amount of text on a recipe, or a user changes their font styles, or someone translates the page into another language. All max- height can do is harm, no benefit.
    • I recommend you define media queries in rem or em not px. This is so that the layout adjusts nicely for all users, even those who change their default text size setting.
    Marked as helpful
  • budijiie•100
    @budijiie
    Posted 7 months ago

    Hello @Tanya-abi, congratulations on completing this challenges

    a little advice from me, because I also don't have a figma file, I made my own file in figma by copying the preview file.

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

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.

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

Oops! 😬

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

Log in with GitHub