Take the 2-minute tour ×
User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It's 100% free, no registration required.

This question already has an answer here:

Is is a common practice to do that ? Or should I put informations linked to this input next to it ?

For example: <input type="text" title="You first, not your last name !" placeholder="Name"/>

JsFiddle: http://jsfiddle.net/xcGx9/

share|improve this question

marked as duplicate by Matt Obee, Benny Skogberg, JohnGB, Ben Brocka Mar 8 '13 at 19:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Why to you post a complete external link to display a single line of code? –  André Mar 8 '13 at 13:28
    
@André So that you can see what it looks like. I think the end result is more important than the code here. –  pinouchon Mar 8 '13 at 14:01
add comment

1 Answer

It's not a common practice, but I think it's not that bad, because in the title, which appears as a tooltip, you give additional information for the user once he enters the field using mouse pointer.

However, I think a better choice would be giving a field a label and use placeholder for descriptive text, so that it looks like:

Name: [ You first, not your last name ]

This way:

  • user won't loose the purpose of the field while being inside the field
  • it will work on touch devices the same way
  • it will not depend on using the mouse pointer
share|improve this answer
1  
I think that's a good advice. Placeholder shouldn't substitute a proper <label>, it's a hint, a complement. Something like this, perhaps: jsfiddle.net/rhWGA/2 Also, there's been some discussion about the title tag: blog.paciellogroup.com/2010/11/using-the-html-title-attribute –  Ignacio Mar 8 '13 at 13:18
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.