Skip to content

Small tag for error messages #710

Answered by aweell
aidamag asked this question in Q&A
Feb 22, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @lisa159,

Can you provide examples from where you found this recommendation?

Using for error messages

It's weird because according to MDN documentation:

The <small> HTML element represents side-comments and small print, like copyright and legal text, independent of its styled presentation.

I went also through the HTML <small> specs section and nothing appears related to the use case is proposed in this discussion.

I usually don't take other design system implementations as a source of truth but it seems to be no consensus in what tag should be used in these cases (e.g. I have seen implemented as a <div>, <span> or <p>)

Other use cases

According to the references I previously include…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aidamag
Comment options

Answer selected by aweell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants