-1

I know this has been asked several times. I followed these links also

  1. HTML: Tab space instead of multiple non-breaking spaces ("nbsp")?
  2. How to get a tab character?

But non of them give me the method I want. When I use above ones it give me correct result in HTML page. But the problem is I have to export that data to a excel sheet. So when I'm exporting that data I want to get them in different cells.

For example

<td>
    <strong>Name</strong> User Name
</td>

In here I want to print those in different cells (same row). If I use </br> it will goes to next row correctly. I couldn't find way to go to next cell.

Community
  • 1
  • 1
Sathindu
  • 407
  • 1
  • 5
  • 21
  • You will have to put them into separate `` cells. Tabs and line breaks (`
    `) only affect the rendered output, not how the data is treated when imported to Excel.
    – Filburt Feb 01 '16 at 12:28
  • I used that. But not work as my way. Anyway thank you – Sathindu Feb 01 '16 at 12:48

1 Answers1

1

To get the Name and username in different cells, you should <td> both.Try t

<tr>
    <td><strong>Name</strong></td><td>User Name</td>
</tr>
Sanzeeb Aryal
  • 4,358
  • 3
  • 20
  • 43