Design comparison
Community feedback
- @kaamiikPosted 1 day ago
Hi,
I noticed some serious problems in your code. I strongly suggest reviewing this code and previous challenges you’ve done before starting a new one. If you do not solve these problems, it is likely you will repeat the same mistakes.
-
The
main
tag is a semantic tag that defines the main content of a document. There is no need to add a role attribute inside it. -
Decorative images do not need an alt text. The
alt
attribute in yourimg
tag should be empty like this:alt=""
. The top icon here is decorative. -
The HTML structure is very important in this challenge. Inside your cards, you have a
form
element that contains a group of radio buttons with a question linked to these radio buttons. The best element for this is afieldset
with alegend
inside it. Then, you have a submit button to submit your form. -
Try to use a proper CSS reset at the start of your CSS style. Andy Bell and Josh Comeau both have good ones. You can easily find them by searching online.
-
You do not need to set a height like
min-height: 22rem;
for your card. -
The hover effect should be on interactive elements like links, buttons, or inputs. Also, your button does not have a hover effect.
-
Add padding to your button instead of setting a height like
height: 3rem;
.
0 -
Please log in to post a comment
Log in with GitHubJoin 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