Design comparison
Solution retrospective
I try Tailwind to solve this challenge, what the css framework you refer to use? and why?
Community feedback
- @correlucasPosted about 2 years ago
πΎHello @lenez12, Congratulations on completing this challenge!
I saw your solution preview site and I think it's already really good. Hereβs some tips for you to improve it:
1.Your html is working but you can improve it using meaningful tags and replace the divs, for example the main div that takes all the content can be wrapped with
<main>
or section, about the cards you can replace the<div>
that wraps each card with<article>
you can wrap the paragraph with the quote with the tag<blockquote>
this way you'll wrap each block of element with the best tag in this situation. Note that<div>
is only a block element without meaning, prefer to use it for small blocks of content.This article from Freecodecamp explains the main HTML semantic TAGS: https://www.freecodecamp.org/news/semantic-html5-elements/
2.Donβt use
id
to give the style of your elements, it's not a good idea becauseid
is a too specific selector used forforms
and Javascript code. Instead, useclass
for styling and let theid
for much specific stuff. It's also not advisable to use IDs as CSS selectors because if another element in the page uses the same/similar style, you would have to write the same CSS again. Even if you don't have more than one element with that style right now, it might come later.βοΈ I hope this helps you and happy coding!
1 - @denieldenPosted about 2 years ago
Hi Lenez, congratulations on completing the challenge, great job! π
Some little tips for optimizing your code:
- use
blockquote
tag instead of a simplediv
to the container card cites for improve the Accessibility - add descriptive text in the
alt
attribute of the images
Hope this help! Happy coding π
1 - use
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