Tab Key - Tabs in HTML

Tabs in HTML

HTML represents the horizontal tab as 	 but as with all whitespace characters this does not allow actual insertion of tabs into the page except inside

 tags or elements with CSS attribute white-space set to pre.

Here is an example showing the use of 	 with

 tags. If you write in HTML:

These 2 lines are tabbed: 2009	This line uses a tab. 	This line also uses a tab. This line does not use a tab.

The result would be something like this:

These 2 lines are tabbed: 2009 This line uses a tab. This line also uses a tab. This line does not use a tab.

The vertical tab is  but is not allowed in SGML, including HTML and XML 1.0.

Read more about this topic:  Tab Key