Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How view '\t' (tab) sign in HTML document?

Tags:

html

I know, that i can insert it in 'pre' tag, but is there any other solution?

PS.

When I add it is printed as space.

like image 749
Michał Bożydar Pawłowski Avatar asked Mar 10 '13 14:03

Michał Bożydar Pawłowski


People also ask

What does \t do in HTML?

It is equivalent to the tab character as such. Thus, from the HTML viewpoint, there is no need to “escape” it using the character reference; but you may do so e.g. if your editing program does not let you enter the character conveniently.

How do I show tabs in HTML?

The tab character can be inserted by holding the Alt and pressing 0 and 9 together.

Is there a tab element in HTML?

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.


2 Answers

Just use  
As the same affect of tab sign

like image 155
ahmednabil88 Avatar answered Sep 24 '22 07:09

ahmednabil88


Use & emsp; (without space, as html entity) to put a emphasized space... Similar to tab character &t

like image 30
Ronnie Avatar answered Sep 26 '22 07:09

Ronnie