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

NFT preview card component

Othman 380

@Rizqy777

Desktop design screenshot for the NFT preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I am new to programming, I appreciate any advice to improve, thank you in advance.

Community feedback

imLumarq 210

@imLumarq

Posted

Hi Othman

1.I would suggest using a code formatter for your html. This can be accomplished by opening VSCode going to the extensions tab searching and installing Prettier - Code formatter. This is the code formatter that personally use and and currently has "33,009,579 installs".This would format your code making it so that other developers have a easier time reading your html.You can watch this video for help with Prettier - Code formatter Formatting your code is a waste of time - use Prettier instead.

2.It is always good practice to include text within the alt attribute. The alt attribute provides alternative information for an image if a user for some reason cannot view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader). Eg.

/*your code*/
<footer class="footer">
<img src="images/image-avatar.png" class="avatar" alt="">
<p class="text_2"> Creation of <span class="text-2_style"> Jules Wyvern </span> </p>
</footer> 

/*changed code*/
<footer class="footer">
<img src="images/image-avatar.png" class="avatar" alt="Profile picture">
<p class="text_2"> Creation of <span class="text-2_style"> Jules Wyvern </span> </p>
</footer>   

Here's my solution:

https://www.frontendmentor.io/solutions/nft-preview-card-OQ2J2JTSDt

I hope you find this helpful 😄!

Happy Coding!

Marked as helpful

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