Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tab space in HTML

I want to use a tab space in my string. I am providing the code of using new line. But I don't know how to use a tab space in a string. Can anyone help me on this !?

"Warning ! Sorry Cash Pay is less than this  <br/> month\'s installment. Please pay the  <br/> right amount."
like image 932
Sumon Bappi Avatar asked Jan 12 '13 04:01

Sumon Bappi


1 Answers

&#09; is TAB character in ASCII. But according to html spec all white space characters will be stripped to a single character. There are other white space characters too. Like &thinsp;, &emsp; and &ensp; You can try them too.

Update

It seems &emsp; gives a spacing of tab size. See the following

  • a&emsp;b rendered as a b
  • a&ensp;b rendered as a b
  • a&thinsp;b rendered as a b
  • a&nbsp;b rendered as a b
  • a&#09;b rendered as a b
like image 89
Shiplu Mokaddim Avatar answered Oct 04 '22 03:10

Shiplu Mokaddim