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

Product Preview Card Component

Danβ€’ 30

@txhawg

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Are these "component" items supposed to have an H1 element? I am assuming since they are components they would be part of a complete web page which should already have an H1 component. I read somewhere there should only be 1 H1 on any given page.

Community feedback

Danβ€’ 30

@txhawg

Posted

The design comparison does not accurately show the solution as coded. Why is that? Where is it getting it's rendering info from? That is frustrating! I spent hours getting it "just right".

0
Lucas πŸ‘Ύβ€’ 104,420

@correlucas

Posted

πŸ‘ΎHello Dan, congratulations for your new solution!

I got what you said, in this case you add h1 only to avoid the solution report saying that you miss the h1 heading.

But in another context for sure the card title will be an h1 or h2. Since this is just a component part of a big page and will be not the main title anyway.

πŸ‘‹ I hope this helps you and 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