Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

div tags or table tags

Status
Not open for further replies.

rajeshdara

Programmer
Sep 7, 2007
1
US
Hi friends,

While designing the html page, is it better to use table tags instead of div tags? If i use entirely table tags instead of div tags, is it will give good results?

hoping the nice reply
 
It depends on what you want to show on your page. If you are showing tabular data, then use tables. If you are looking for ways to set the layout of your page then avoid tables and go with a CSS based approach (which will probably involve some div tags).


------------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
 
Div tags are the answer. No question.

When designing the page, use divs. When displaying tabular data (ie. calendars, lists of numeric data, spreadsheets etc) then you would use a table (when it is semantically correct).

That's the ideal, anyway.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top