@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".
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.
@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".
@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!
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