article or section element?
I'm not sure whether each of the 3 parts in this card component should be made with the <section/> or <article/> tags.
I know that article tags should be independent and make sense on their own and I think each part of the card does make sense on it's own, but at the same time section elements contain thematically related content, and these 3 "sections" are related.
So should I use <article/> or <section/>?
5 Replies
both? a section with 3 articles?
Sorry I didn't clarify that this is a front-end mentor challenge 😅. And it's an html and css only challenge.
So I didn't make the mockup. I'm just practising my html and css skills by building out already-designed components. The buttons don't link anywhere, it's not a part of a website. I'm just building out the component.
here's the code. I thought it should be an article element, but I could be wrong
so, what's the question then?
if it is still the same question, i will give you the same answer
Yepp, One section with three articles is what I would do as well.
The
section
is about cars (three categories), and each article
talks about each category (sedans, suvs, luxury).yh ur right
thanks for ur answer