QA.TechInterviews.com - your tech questions answered
HTML And A Tab?
I need to insert a simple tab, nothing else. I do not need a long HTML string. Is there something that exists where I can use it like a bold <b>letter</b> but what I really want is to insert 4 spaces. Nothing more, nothing less. It is for a column.
There is no tab in HTML. Try:

&+nbsp; &+nbsp;

(except remove the "+" character. I had to insert it or this page would have automatically turned it into a blank space.) This inserts blank spaces for you.

You cannot use two blank spaces because HTML automatically ignores those. You must alternate &+nbsp; and a blank space. (Again, remove the "+" symbol.)

If you are familiar with CSS (cascading style sheets) then you can also adjust the left margin for indenting.
There is no tab in HTML. Try:

&+nbsp; &+nbsp;

(except remove the "+" character. I had to insert it or this page would have automatically turned it into a blank space.) This inserts blank spaces for you.

You cannot use two blank spaces because HTML automatically ignores those. You must alternate &+nbsp; and a blank space. (Again, remove the "+" symbol.)

If you are familiar with CSS (cascading style sheets) then you can also adjust the left margin for indenting.
There is no equivlent of a tab in html.
You can do css like so:

<p style="margin-left: 3em;">indented text</p>
This also wotrks in div, td and other tags.
There is a way to do a tab using stylesheets:

<p style=" text-indent:5px; "> yada...... </p>

Don't use & nbsp;, this will just pad your HTML with a lot of unnecessary characters. Using margin:5px will indent your entire paragraph by 5 px and change the margins, which is not what you want.
for every space you must use "&" folowed by "nbsp;" i cannot use it here as yahoo replace it

Back to QA. TechInterviews.com. Powered by Yahoo! Answers and TechInterviews.com community.