Does anyone know what the character entity for a tab is in xhtml? (Um if there is one)...
Asked
Active
Viewed 1.9k times
3 Answers
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
-
3Indeed. There are, however, some cases where a raw tab in an attribute value will be parsed away to nothing, whereas a character reference will survive into attribute.nodeValue. – bobince Oct 21 '08 at 16:30
-
1They can be used in ` – mipadi Oct 21 '08 at 17:09
-
And for in `pre` tags. – May 12 '14 at 10:48
-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