@xphstos
Posted
You should think it like this.. Does the learning tag and the published has anything to do the image? Not quite, the learning has to do with the content of the card, meaning it's a tutorial article and the publish date obviously has to do with when the article was published. The image is not even needed to give meaning to the content of the article. Figcaption should describe the contents of a figure if those are media elements and only if it gives value to the user.
In our case I don't see the value. It's plain decorative.
Marked as helpful
@xphstos Thank you for your feedback! In this case, should I just use a plain p tag with div if it is needed right?
@xphstos
Posted
@DepartureLV Yes a div or a p tag is fine. That depends on the context of the rest of site. Assuming this was one card out of many. Can something be tagged as Learning and something else at the same time? If yes.. then a div or a span tag is best suited for that. Or maybe that tag is a link that leads you to a page with articles tagged as Learning. In that case that would be either a button or a ahref element. The date could live inside a p or a div and then use the time tag for the date.
Marked as helpful