@daniDev6
Submitted
I use many divs, is it correct to use so many divs? If you can give me advice it would help me
@a-then
@daniDev6
Submitted
I use many divs, is it correct to use so many divs? If you can give me advice it would help me
@a-then
Posted
Awesome work with this! I like how you organize your CSS.
Editing this to answer your question about divs
The documentation says to use div for styling purposes only, when there is NOT a better semantic option. If you have to optimize for accessibility, I'd do <main> instead of a <section> for your .card-container. Keep the <article> as you have it and then make .card-result and .card-description into sections. But it depends on your logic because you can totally make .card-item a section and .card-result and .card-description as article elements within if you think each is shareable content that would make sense on its own (ie. share result as a tweet)
<main>
<article>
<section>
<h2>...</h2>
<div> ... </div>
...
</section>
<section>
<div> ... </div>
<div> ... </div>
...
</section>
</article>
</main>
Like I said, this looks great, It's crazy how close you got to the original. If I have to nick-pick it, I'd suggest these two things:
Keep up the good work!