0

I am creating a textarea which has a placeholder that shows what kind of information should be in the textarea. The only problem is, I need to use several special characters. The first is the line break, which I figured out can be created using this:


			

However, I am still unsure of how to create a tab character within a placeholder. Is this possible? If so, what can I do to generate a tab character within a placeholder?

Tigerman55
  • 233
  • 10
  • 20

1 Answers1

1

This is Horizontal Tab according to this:

	

<textarea name="textarea" rows="10" cols="50" placeholder='test&#x09;test2'></textarea></textarea>

Update: I have just tested it under FF 31 and Chrome 36 and it works good.

http://webdesign.about.com/od/localization/l/blhtmlcodes-punc.htm

Community
  • 1
  • 1
scx
  • 2,749
  • 2
  • 25
  • 39