Jump to content

Proper Tag For Error Messages


Glese

Recommended Posts

Ultimately your error message will be a line of text and proper semantics would make it be a paragraph.

 

You could use em inside a paragraph to stress the emphasis of the message but definitely a paragraph would be a win for me!

 

 

Link to comment
Share on other sites

I guess it all depends on where the error message is happening.

 

Is it happening at the end of a body of text? Then you could use a paragraph tag.

 

If its happening above an input, then I would use an inline element like strong, em, span etc.

 

Good luck

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.