Frontend Mentor | 3-column preview card component
Design comparison
Community feedback
- @AdrianoEscarabotePosted about 2 years ago
Hi Victoria Alia, how are you?
Welcome to the front-end mentor community!
I really liked the result of your project, but I have some tips that I think you will enjoy:
You should wrap this div:
<div class="attribution"> Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. Coded by <a href="#">Victoria Alia</a>. </div>
with a
footer
tag!<button class="btn btn3"> Learn More </button>
The best choice would be to use a tag in which case the button is written
learn more
so this indicates that the user will be taken to another page to learn more!The rest is great!
I hope it helps... π
Marked as helpful1 - @denieldenPosted about 2 years ago
Hello Victoria, You have done a good work! π
Some little tips to improve your code:
- Tip of graphic design: with
font-family:" Big Shoulders Display ", cursive
the browser will use the Comics Sans font when it doesn't find the first font indicated (you can seen during loading)... for the designer it's a really awful font! I would rather replace it with afont-family:" Big Shoulders Display ", sans-serif
much more similar to the primary font. - add
main
tag and wrap the card for improve the Accessibility - remove descriptive text in the
alt
attribute of the images because it's only decorative - remove all
width and height
fromcontainer
id and addmin-height: 100vh
because Flexbox aligns child items to the size of the parent container - instead of using
px
use relative units of measurement likerem
-> read here
Keep learning how to code with your amazing solutions to challenges.
Hope this help π and Happy coding!
Marked as helpful1 - Tip of graphic design: with
- @VCaramesPosted about 2 years ago
Hey there! π Here are some suggestions to help improve your code:
Your component is not complete. It needs to be responsive in order to be considered complete. Here is a link to Google Developerβs site that will teach you how make it 100% responsive:
- To not only improve your HTML code but to also identify the main content of you page, you will want to wrap your entire component inside the
main
element.
- The βcar images/iconsβ in this component are purely decorative; They add no value. So their
Alt Tag
should be left blank and have anaria-hidden=βtrueβ
to hide them from assistive technology.
- The headings in your component are being used incorrectly. Since the
h1
heading can only be used once, it is always given to the heading with the highest level of importance. This component has three headings of equal importance, so the best option would be to use anh2
heading since it is reusable and it will give each heading the same level of importance.
- Your "buttons" were created with the incorrect element. When the user clicks on the button they should be directed to a different part of you site. The
anchor tag
will achieve this.
- Your buttons should have a
hover
andfocus-visible
.
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! ππ¦
Marked as helpful1 - To not only improve your HTML code but to also identify the main content of you page, you will want to wrap your entire component inside the
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