Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tab Character Entity for XHTML?

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

like image 453
leeand00 Avatar asked Oct 21 '08 15:10

leeand00


People also ask

What is the character code for a tab?

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.

How do I make a tab character in HTML?

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.

What does \t do in HTML?

The \t metacharacter matches horizontal tabs (tabulators).

Which tag is used for tab space in HTML?

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.


1 Answers

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.

like image 72
mipadi Avatar answered Sep 19 '22 10:09

mipadi