Does anyone know what the character entity for a tab is in xhtml? (Um if there is one)...
Tab characters. The most known and common tab is a horizontal tabulation (HT) or character tabulation, which in ASCII has the decimal character code of 9, and may be referred to as Ctrl + I or ^I.
Adding Tab Space in HTML Unlike with HTML space, there is no particular HTML tab character you could use. You could technically use the 	 entity as the tab is character 9 in the ASCII.
The \t metacharacter matches horizontal tabs (tabulators).
It depends on which character set you want to use. There's no tab entity defined in ISO-8859-1 HTML - but there are a couple of whitespace characters other than such as   ,   ,and   . In ASCII, 	 is a tab.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With