Using table or div

i need to add data in a table format ie column & row , instaed of using<table></table> can it be done using div as using table may not be displayed properly in all browsers

i have 7 columns & 15 rows

or a div in a <td> wuld be good

If its tabular data it should go in a table and there should be no problem with it displaying unless you are doing something weird to it.

I’m with Paul here, it should go in a table if it is tabular data and there certainly shouldnt be any display problems.

Sounds like a list of content such as a grid of products. In that case a list would be the way to go alongside CSS to accomplish the desired design goals.

Table should display fine as long as you code right.

Many prefer using div over table mainly because of the loading nature on the browser. Table isnt rendered on the page until the entire content is cached, whereas using divs allow the browser to render piece by piece.

Some people find it easier to code with table then div of course.

If you’re talking about tabular structures for an entire site, that’s long outdated and never, ever recommended as good practice.

In most instances neither a table nor a div is the appropriate tag to use.

What you need to ask yourself is what the most appropriate tag is to match with what the content actually is. When the content is tabular data to be set out in a tabular format is the only time that a table is the right choice. The only time a div is the right choice is when there is no othet HTML tag that describes what the content is.

With what the OP is asking about tha right tag to use would either be a table - if it genuinely is 15 records each having the same zeven fields that you want to display - or if it isn’t tabular data then the most likely possibility is that it is a list.