Jump to content

Tab spaces


djp1988

Recommended Posts

I say in my HTML book that you can get TAB spaces if you use this code:

& # 009;

But it doesn't work, the book also says that number codes can be interpreted differently according to browsers which is why there are the equivilants in letters:

& # 034;   =   "

So any ideas on how i can get a Tab space out of HTML code?PS: i added spaces to the &...... cos otherwise they didn't show :s

Link to comment
Share on other sites

9 is the correct ASCII code for a tab, that is how you display a tab character. But keep in mind that HTML ignores whitespace, so unless you are using a fixed-width font or preformatted text, the browser will still show the tab as a singe space, like any other whitespace.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...