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

HTML and Vanilla CSS

@Channah-Miryam

Desktop design screenshot for the 3-column preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hello, community!

How do you think I could improve?

Thank you

Community feedback

PhoenixDev22 16,950

@PhoenixDev22

Posted

Hi Channah Miryam,

Congratulation on completing another frontend mentor challenge.Excellent work! I have some suggestions:

  • About <h1>it is recommended not to have more than one h1 on the page. Multiple <h1>tags make using screen readers more difficult, decreasing your site’s accessibility. In this challenge, as it’s not a whole page, you can have<h1>visually hidden with sr-only. Then you can swap those <h1> with <h2>
  • In my opinion, the images are much likely to be decorative. For any decorative images, each img tag should have empty alt="" and aria-hidden="true" attributes to make all web assistive technologies such as screen reader ignore those images, always remember to include interactive elements like(button, textarea,input, ..)
  • In this challenge, what would happen when the user click those learn more? In my opinion, clicking those "learn more" would likely trigger navigation not do an action so button elements would not be right. So you should use the <a>. For future use , it's a good habit of specifying the type of the button to avoid any unpredictable bugs.
  • There are some unnecessary div’s need to be HTML.
  • Adding rel="noopener" or rel="noreferrer" totarget="_blank"links. When you link to a page on another site using target=”_blank” attribute, you can expose your site to performance and security issues.
  • In order to center the card on the middle of the page , you can use the flex or grid properties and min-height: 100vh to the <body>. Add a little padding to the body that way it stops the component from hitting the edges of the browser.
  • Add border-radius and overflow hidden to the main container that wraps the three cards so you don't have to setborder-radiusto individual corners.

hopefully this feedback helps.

Marked as helpful

0
Adriano 34,090

@AdrianoEscarabote

Posted

Hi @Channah-Miryam, how are you?

I really liked the result of your project, you did a great job in this challenge, but I have some tips that I think you will like:

1- Page should contain a level-one heading, you could have changed the .heading to h1 [click here to read about it](https://dequeuniversity.com/rules/axe/4.3/page-has -heading-one?application=axeAPI)

2- Document should have one main landmark, you could have put everything inside the main tag click here

The rest is great! Hope it helps... 👍

Marked as helpful

0
Lucas 👾 104,420

@correlucas

Posted

👾Hello Channah Miryam, congratulations for your new solution!

Here's some tips to improve your solution:

You made your html structure entirely with div blocks but these div doesn't any semantic meaning, for this reason is better you use a better html markup improving your code, for example for each vehicle card you use <article> instead of the <div>.

Note that you have to add the rounded borders with border-radius only in the first and the last card.

This article from Freecodecamp explains the main HTML semantic TAGS: https://www.freecodecamp.org/news/semantic-html5-elements/

✌️ 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