3

This question already has an answer here:

I want to explain a MySQL table structure, and I used <dt> and <dl>.

But I could see other posts having a neat table display of their examples

How do I code a table-like structure in a question's textarea?

marked as duplicate by Martijn Pieters, Shadow The Curly Braced Wizard, Manishearth, ChrisF Apr 15 '13 at 8:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from webmasters.stackexchange.com Nov 26 '12 at 8:59

This question came from our site for pro webmasters.

7

You can display data in table structure like this:

id | stationname | total
-------------------------
 1 | Khar        | 5
 2 | SantaCruz   | 3
 3 | Sion        | 2
 4 | VT          | 1
 5 | newFort     | 3
 6 | Bandra      | 2
 7 | Worli       | 1
 8 | Sanpada     | 3
 9 | Joe         | 2
10 | Sally       | 1
11 | Elphiston   | 2
12 | Currey Road | 1

Here you need to write your data in normal table structure (like writing it on notepad.). Then you just need to give them code sample appearance. (By Ctrl+K).

Note: You can use some external tools for that such as:

  • you mean with tabs and spaces in notepad or using tags of html? – Jayapal Chandran Nov 27 '12 at 5:52
  • i tried it works with tabs or even spaces... that is how i had created previously but as i have said i could see more formatted neat tables. – Jayapal Chandran Nov 27 '12 at 5:52
  • @JayapalChandran - Just click on edit button of this answer and see how the table is formatted. – hims056 Nov 27 '12 at 5:53

Not the answer you're looking for? Browse other questions tagged .