by divbzero · 6y ago · 0 comments
This can be a challenge for purely classless CSS because a style can correspond to different semantics in different scenarios. For example, the cards as used in Basic.css [1] are semantically <section>s. But in a different context, cards could be used for an <aside> [2] or for a social media post which would indeed be an <article> [3].
[1]: https://vladocar.github.io/Basic.css/
[2]: https://getbootstrap.com/docs/4.5/components/card/
[3]: https://html.spec.whatwg.org/multipage/sections.html#article...
No comments yet.