@PhoenixDev22
Posted
Hi Dan,
You're welcome and glad it was helpful.
The question is: why did you use a <section>
?
According to MDN , <section>
is a generic sectioning element that is used whenever it doesn’t make sense to use the other more semantic ones. It is a container that stores self-contained content that still makes sense when placed in a different context. If you are only using the element as a styling wrapper, use a <div>.
Visually, your section is probably going to stand out somehow; a different coloured background or some other way to distinguish it from the other content on the page. Adding a label to the section allows it to stand out to non-visual users.
You can read more in CSS tricks
As you said, the price and the time are related in the whole component (NFT card). In my opinion, I would choose <ul>
as it conveys semantic meaning and rearrange items.
I’m not sure if I was good at explaining, Hopefully this makes it clear.
Marked as helpful
@dtp27
Posted
@PhoenixDev22 That makes a lot of sense, and I'll be sure to read that article you sent.
Thanks!!
@PhoenixDev22
Posted
@dtp27 Glad it was helpful . Happy coding!