8

Does anyone know what the character entity for a tab is in xhtml? (Um if there is one)...

leeand00
  • 25,510
  • 39
  • 140
  • 297

3 Answers3

7

Try 	. The TAB is ASCII character #9.

But it may not show up as you'd expect, anyway, since HTML ignores whitespace in most instances.

mipadi
  • 398,885
  • 90
  • 523
  • 479
5

(X)HTML has no special support for tabs: they're just another whitespace character, regardless of whether you escape them or not.

Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214
-1

What most people do to simulate tabs is use DD & DT tags. They are intended creating a glossary:

term
    definition goes here

term
    definition goes here
James Curran
  • 101,701
  • 37
  • 181
  • 258