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

JavierRiv97โ€ข 10

@JavierRiv97

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


Hey! I'm not sure why but I cant seem to find the font styles in the read me file for this project. is this something I won't have access to until I get the pro membership? thanks in advance :)

Community feedback

Francisco Carrilloโ€ข 5,560

@frank-itachi

Posted

Hello there ๐Ÿ‘‹. You did a good job!

I have some suggestions about your code that might interest you.

HTML ๐Ÿ“„:

  • Wrap the page's whole main content in the <main> tag.
  • If your code has different sections that have a specific like a , , sections or footer, itโ€™s a good practice to enclose those parts with HTML5 landmarks. For example, you could use a <footer> tag to wrap a footer section.
  • Since the mobile design has a different image, you can use the <picture> tag that allows you to interchange the images depending of the viewport size. Red more about this awesome tag here
  • Make sure that the <img> elements in your HTML code has an alternate (descriptive text) short text. The reason for this is that screen readers canโ€™t translate images into text. So to fix this you can do the following <img src=โ€โ€ฆโ€ alt=โ€short textโ€ >
  • The required fonts are in the style-guide.md file. There you can find the font's name and a URL as well where you can download and/or import them into your code. A very famous font web site is Google Fonts.

I hope you find it useful! ๐Ÿ˜๐Ÿ˜ Above all, the solution you submitted is great๐Ÿ‘Œ!

Happy <coding /> ๐Ÿ˜Ž!

0
David Gichuruโ€ข 360

@dxiDavid

Posted

Hello @JavierRiv97 ๐Ÿ‘‹๐Ÿพ

The exact font sizes are for pro members otherwise, use your knowledge of CSS and best judgment to get as close as possible to the design. Don't worry though, It's not that hard.

Also, ensure that your projects meet accessibility requirements by adding alt text to your images for screen readers.

Make sure that your Body content is wrapped in landmarks like <main> or <article>. You can find out more on semantic HTML here

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