views:

1803

answers:

3

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

A: 

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
+3  A: 

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

Konrad Rudolph
Indeed. 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
They can be used in `<textarea>` tags, for spacing.
mipadi
A: 

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